summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index e80b5b5ab6..f4add5f5f4 100644
--- a/bignum.c
+++ b/bignum.c
@@ -252,8 +252,8 @@ rb_cstr2inum(str, base)
if (*end == '_') goto bigparse;
if (badcheck) {
- while (*end && ISSPACE(*end)) end++;
if (end == str) goto bad; /* no number */
+ while (*end && ISSPACE(*end)) end++;
if (*end) { /* trailing garbage */
bad:
rb_invalid_str(s, "Integer");