From d3a56a694935202efa16f752e092f965abfca5aa Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 1 Dec 2015 11:14:22 +0900 Subject: mrb_cstr_to_inum(): should ignore trailing white spaces even when badcheck set --- src/string.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/string.c b/src/string.c index 6c1988e92..6ea139c90 100644 --- a/src/string.c +++ b/src/string.c @@ -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; -- cgit v1.2.3