Commit 787685a0 authored by Syohei YOSHIDA's avatar Syohei YOSHIDA

Fix all zero string case

parent 2a661ac6
...@@ -2153,6 +2153,8 @@ mrb_str_len_to_inum(mrb_state *mrb, const char *str, size_t len, int base, int b ...@@ -2153,6 +2153,8 @@ mrb_str_len_to_inum(mrb_state *mrb, const char *str, size_t len, int base, int b
break; break;
} }
} }
if (*(p - 1) == '0')
p--;
} }
if (p == pend) { if (p == pend) {
if (badcheck) goto bad; if (badcheck) goto bad;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment