mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-sprintf (mrb_str_format): fixed integer size confusion
Declared as int, checked as mrb_int.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user