summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bignum.c b/bignum.c
index b6e551b837..97be53faf1 100644
--- a/bignum.c
+++ b/bignum.c
@@ -733,8 +733,7 @@ rb_cstr_to_inum(const char *str, int base, int badcheck)
if (badcheck) goto bad;
break;
}
- if (badcheck)
- nondigit = (char) c;
+ nondigit = (char) c;
continue;
}
else if ((c = conv_digit(c)) < 0) {