summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 01:52:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 01:52:31 +0000
commit2bd1fa4acec19eac3ee31a67a540ac3d7504392a (patch)
treede77ec38582f51953a732ad48c9d627c19f25862 /bignum.c
parent5367386d1062785cb91523979c3f69a8847ab5c2 (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/branches/ruby_1_8@14311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index b43b5993ba..88bf9e03e6 100644
--- a/bignum.c
+++ b/bignum.c
@@ -416,7 +416,7 @@ rb_cstr_to_inum(str, base, 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: