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/util.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/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3624,7 +3624,7 @@ s32b get_quantity(cptr prompt, s32b max) if (!prompt) { /* Build a prompt */ - sprintf(tmp, "Quantity (1-%ld): ", max); + sprintf(tmp, "Quantity (1-%ld): ", (long int) max); /* Use that prompt */ prompt = tmp; @@ -3635,7 +3635,7 @@ s32b get_quantity(cptr prompt, s32b max) amt = 1; /* Build the default */ - sprintf(buf, "%ld", amt); + sprintf(buf, "%ld", (long int) amt); /* Ask for a quantity */ if (!get_string(prompt, buf, 9)) return (0); |