mruby-sprintf (mrb_str_format): fixed integer size confusion

Declared as int, checked as mrb_int.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-12-06 08:31:30 +09:00
parent 4295a8c560
commit a7232ecf8d
+1 -1
View File
@@ -1016,7 +1016,7 @@ retry:
#else
mrb_value val = GETARG();
double fval;
int need = 6;
mrb_int need = 6;
fval = mrb_as_float(mrb, val);
if (!isfinite(fval)) {