summaryrefslogtreecommitdiff
path: root/src/wizard2.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/wizard2.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/wizard2.c')
-rw-r--r--src/wizard2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wizard2.c b/src/wizard2.c
index 31c74de5..99d0eb41 100644
--- a/src/wizard2.c
+++ b/src/wizard2.c
@@ -791,7 +791,7 @@ static void wiz_tweak_item(object_type *o_ptr)
#endif
p = "Enter new 'pval' setting: ";
- sprintf(tmp_val, "%ld", o_ptr->pval);
+ sprintf(tmp_val, "%ld", (long int) o_ptr->pval);
if (!get_string(p, tmp_val, 5)) return;
o_ptr->pval = atoi(tmp_val);
wiz_display_item(o_ptr);
@@ -803,7 +803,7 @@ static void wiz_tweak_item(object_type *o_ptr)
wiz_display_item(o_ptr);
p = "Enter new 'pval3' setting: ";
- sprintf(tmp_val, "%ld", o_ptr->pval3);
+ sprintf(tmp_val, "%ld", (long int) o_ptr->pval3);
if (!get_string(p, tmp_val, 5)) return;
o_ptr->pval3 = atoi(tmp_val);
wiz_display_item(o_ptr);
@@ -845,7 +845,7 @@ static void wiz_tweak_item(object_type *o_ptr)
wiz_display_item(o_ptr);
p = "Enter new 'obj exp' setting: ";
- sprintf(tmp_val, "%ld", o_ptr->exp);
+ sprintf(tmp_val, "%ld", (long int) o_ptr->exp);
if (!get_string(p, tmp_val, 9)) return;
wiz_display_item(o_ptr);
o_ptr->exp = atoi(tmp_val);