From 20087ac085b472a1238ac0ca78a2cd9d4e24c18d Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sun, 10 Jan 2010 19:30:28 +0100 Subject: 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. --- src/files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/files.c') diff --git a/src/files.c b/src/files.c index a35aac66..c3166f4a 100644 --- a/src/files.c +++ b/src/files.c @@ -3296,7 +3296,7 @@ errr file_character(cptr name, bool full) else if (Total == 1) fprintf(fff, "\n You have defeated one enemy."); else - fprintf(fff, "\n You have defeated %lu enemies.", Total); + fprintf(fff, "\n You have defeated %ld enemies.", (long int) Total); } hook_file = fff; @@ -3317,7 +3317,7 @@ errr file_character(cptr name, bool full) get_month_name(bst(DAY, turn), wizard, FALSE), buf2); fprintf(fff, (death ? "\n Your adventure lasted %ld day%s." : "\n You have been adventuring for %ld day%s."), - days, (days == 1) ? "" : "s"); + (long int) days, (days == 1) ? "" : "s"); } fprintf (fff, "\n\n"); -- cgit v1.2.3