mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix all zero string case
This commit is contained in:
@@ -2153,6 +2153,8 @@ mrb_str_len_to_inum(mrb_state *mrb, const char *str, size_t len, int base, int b
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (*(p - 1) == '0')
|
||||
p--;
|
||||
}
|
||||
if (p == pend) {
|
||||
if (badcheck) goto bad;
|
||||
|
||||
Reference in New Issue
Block a user