From 4dbbcc48dec3071d644780fa2bed226589d9e6d7 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 Jan 2017 08:31:03 +0000 Subject: [PATCH] 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 --- bignum.c | 3 --- 1 file changed, 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) {