diff options
Diffstat (limited to 'mrbgems/mruby-sprintf/src')
| -rw-r--r-- | mrbgems/mruby-sprintf/src/sprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-sprintf/src/sprintf.c b/mrbgems/mruby-sprintf/src/sprintf.c index 6396096b1..87607a2fe 100644 --- a/mrbgems/mruby-sprintf/src/sprintf.c +++ b/mrbgems/mruby-sprintf/src/sprintf.c @@ -224,7 +224,7 @@ get_num(mrb_state *mrb, const char *p, const char *end, mrb_int *valp) if (mrb_int_mul_overflow(10, next_n, &next_n)) { return NULL; } - if (INT_MAX - (*p - '0') < next_n) { + if (MRB_INT_MAX - (*p - '0') < next_n) { return NULL; } next_n += *p - '0'; |
