OSDN Git Service

add type casting for fprintf
[hengband/hengband.git] / src / wizard2.c
index 0a01936..31a7b29 100644 (file)
@@ -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);