summaryrefslogtreecommitdiff
path: root/src/cmd4.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2010-01-10 19:30:28 +0100
committerBardur Arantsson <bardur@scientician.net>2010-01-10 19:32:02 +0100
commit20087ac085b472a1238ac0ca78a2cd9d4e24c18d (patch)
tree5df1ecde8d61a979e58c329a3eab711581620aca /src/cmd4.c
parentd324d9c0ac98e74db26e5dd5c6e379c1fc18cff3 (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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd4.c b/src/cmd4.c
index 897fc063..c66f0fbc 100644
--- a/src/cmd4.c
+++ b/src/cmd4.c
@@ -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 */