aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-07 08:31:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-07 08:31:03 +0000
commit268f8198e079fa82760bed813034a23b1c7500f3 (patch)
tree4d06013274978de53012d28340b14379356aca7b /bignum.c
parenta5792f7432b803e405d056d41711d0214e69539e (diff)
downloadruby-268f8198e079fa82760bed813034a23b1c7500f3.tar.gz
bignum.c: unnecessary check
* bignum.c (rb_cstr_parse_inum): remove unnecessary check. successive sign is rejected by conv_digit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/bignum.c b/bignum.c
index 1fd8666861..872610d1b9 100644
--- a/bignum.c
+++ b/bignum.c
@@ -4057,9 +4057,6 @@ rb_cstr_parse_inum(const char *str, ssize_t len, char **endp, int base)
sign = 0;
}
ASSERT_LEN();
- if (str[0] == '+' || str[0] == '-') {
- goto bad;
- }
}
if (base <= 0) {
if (str[0] == '0' && len > 1) {