summaryrefslogtreecommitdiff
path: root/src/util.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/util.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/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index b199a2a2..d9557086 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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);