summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
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);