ruby-changes:45204
From: nobu <ko1@a...>
Date: Sat, 7 Jan 2017 17:31:09 +0900 (JST)
Subject: [ruby-changes:45204] nobu:r57277 (trunk): bignum.c: unnecessary check
nobu 2017-01-07 17:31:03 +0900 (Sat, 07 Jan 2017) New Revision: 57277 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57277 Log: bignum.c: unnecessary check * bignum.c (rb_cstr_parse_inum): remove unnecessary check. successive sign is rejected by conv_digit. Modified files: trunk/bignum.c Index: bignum.c =================================================================== --- bignum.c (revision 57276) +++ bignum.c (revision 57277) @@ -4057,9 +4057,6 @@ rb_cstr_parse_inum(const char *str, ssiz https://github.com/ruby/ruby/blob/trunk/bignum.c#L4057 sign = 0; } ASSERT_LEN(); - if (str[0] == '+' || str[0] == '-') { - goto bad; - } } if (base <= 0) { if (str[0] == '0' && len > 1) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/