diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-01-10 19:30:28 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-01-10 19:32:02 +0100 |
commit | 20087ac085b472a1238ac0ca78a2cd9d4e24c18d (patch) | |
tree | 5df1ecde8d61a979e58c329a3eab711581620aca /src/cmd4.c | |
parent | d324d9c0ac98e74db26e5dd5c6e379c1fc18cff3 (diff) |
Fixes for 64 bit compatibility.
- Fix skill value display in character dump on 64 bit machines.
- Fix format strings and add casts to *printf() invocations.
Diffstat (limited to 'src/cmd4.c')
-rw-r--r-- | src/cmd4.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3963,7 +3963,7 @@ static void do_cmd_knowledge_kill_count(void) } else { - fprintf(fff, "You have defeated %lu enemies.\n\n", Total); + fprintf(fff, "You have defeated %ld enemies.\n\n", (long int) Total); } } @@ -4017,7 +4017,7 @@ static void do_cmd_knowledge_kill_count(void) } fprintf(fff, "----------------------------------------------\n"); - fprintf(fff, " Total: %lu creature%s killed.\n", Total, (Total == 1 ? "" : "s")); + fprintf(fff, " Total: %ld creature%s killed.\n", (long int) Total, (Total == 1 ? "" : "s")); /* Close the file */ my_fclose(fff); @@ -4310,7 +4310,7 @@ static void do_cmd_knowledge_quests(void) fprintf(fff, "Kill them all to get it back.\n"); } fprintf(fff, "Number: %d, Killed: %ld.\n", - random_quests[dun_level].type, quest[QUEST_RANDOM].data[0]); + random_quests[dun_level].type, (long int) quest[QUEST_RANDOM].data[0]); fprintf(fff, "\n"); } /* MUST be a lua quest */ |