diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-19 01:52:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-19 01:52:31 +0000 |
commit | 198c0920045418b8c530b35dfab228cfeee0a4d1 (patch) | |
tree | 3fd9c6ad1f1f0e026ceeb1302398dc607168dd12 /bignum.c | |
parent | eddc9b7fd4a222534faa9aa5d2454d218d0dfa34 (diff) |
* bignum.c (rb_cstr_to_inum): an underscore succeeding after octal
prefix is allowed. [ruby-core:14139]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -439,7 +439,7 @@ rb_cstr_to_inum(const char *str, int base, int badcheck) len = 2; break; case 8: - if (str[0] == '0' && (str[1] == 'o'||str[1] == 'O')) { + if (str[0] == '0' && (str[1] == 'o'||str[1] == 'O'||str[1] == '_')) { str += 2; } case 4: case 5: case 6: case 7: |