Skip to content
Permalink
Browse files
Fix all zero string case
  • Loading branch information
syohex committed Jan 14, 2016
1 parent 2a661ac commit 787685a0b9d26cc916d08ecbd876cdcd10ebdadb
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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;

0 comments on commit 787685a

Please sign in to comment.