diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-18 11:55:34 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-18 11:55:34 +0000 |
commit | 2630ad09bd6f959b0379adfba84a6c7b4e4958ff (patch) | |
tree | c8455070a6042afe8b6d791391bfc1911747133b /bignum.c | |
parent | 1f225be2e51f0ff7376846d5631fd6287eb03d14 (diff) | |
download | ruby-2630ad09bd6f959b0379adfba84a6c7b4e4958ff.tar.gz |
* bignum.c (rb_cstr_to_inum): should accept underscores of
sequence of two or more when unchecked mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -733,7 +733,8 @@ rb_cstr_to_inum(const char *str, int base, int badcheck) if (badcheck) goto bad; break; } - nondigit = (char) c; + if (badcheck) + nondigit = (char) c; continue; } else if ((c = conv_digit(c)) < 0) { |