OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add type casting for fprintf
[hengband/hengband.git]
/
src
/
wizard2.c
diff --git
a/src/wizard2.c
b/src/wizard2.c
index
0a01936
..
31a7b29
100644
(file)
--- a/
src/wizard2.c
+++ b/
src/wizard2.c
@@
-1040,7
+1040,7
@@
static void wiz_statistics(object_type *o_ptr)
break;
}
- sprintf(tmp_val, "%ld", test_roll);
+ sprintf(tmp_val, "%ld",
(long int)
test_roll);
if (get_string(p, tmp_val, 10)) test_roll = atol(tmp_val);
test_roll = MAX(1, test_roll);