OSDN Git Service

add type casting for fprintf
[hengband/hengband.git] / src / xtra2.c
index 8206468..246306b 100644 (file)
@@ -3088,7 +3088,7 @@ static void evaluate_monster_exp(char *buf, monster_type *m_ptr)
        num = MIN(999, exp_adv_frac);
 
        /* Display the number */
-       sprintf(buf,"%03ld", num);
+       sprintf(buf,"%03ld", (long int)num);
 }