Permalink
Browse files

mrb_cstr_to_inum(): should ignore trailing white spaces even when bad…

…check set
  • Loading branch information...
matz committed Dec 1, 2015
1 parent dbb8cf6 commit d3a56a694935202efa16f752e092f965abfca5aa
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/string.c
View
@@ -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;

0 comments on commit d3a56a6

Please sign in to comment.