Skip to content

Commit

Permalink
mrb_cstr_to_inum(): should ignore trailing white spaces even when bad…
Browse files Browse the repository at this point in the history
…check set
  • Loading branch information
matz committed Dec 1, 2015
1 parent dbb8cf6 commit d3a56a6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d3a56a6

Please sign in to comment.