mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mrb_cstr_to_inum(): should ignore trailing white spaces even when badcheck set
This commit is contained in:
@@ -2150,7 +2150,6 @@ mrb_cstr_to_inum(mrb_state *mrb, const char *str, int base, int badcheck)
|
||||
uscore = 0;
|
||||
c = conv_digit(*p);
|
||||
if (c < 0 || c >= base) {
|
||||
if (badcheck) goto bad;
|
||||
break;
|
||||
}
|
||||
n *= base;
|
||||
|
||||
Reference in New Issue
Block a user