mrb_cstr_to_inum(): should ignore trailing white spaces even when badcheck set

This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-12-01 11:14:22 +09:00
parent dbb8cf637e
commit d3a56a6949
-1
View File
@@ -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;