diff --git a/src/string.c b/src/string.c index 79606f1af..552293a46 100644 --- a/src/string.c +++ b/src/string.c @@ -2125,15 +2125,21 @@ mrb_str_len_to_inum(mrb_state *mrb, const char *str, size_t len, int base, int b break; } /* end of switch (base) { */ if (*p == '0') { /* squeeze preceding 0s */ - while (p