diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-14 06:54:27 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-14 06:54:27 +0000 |
commit | 3f4472433d09fbeedaa9c41c7d76eb1299e31638 (patch) | |
tree | a4ad2e83d82088c8cd076830e3b25031d6ed061b /string.c | |
parent | d39d90f86ae5b61530dd76689921f31505290272 (diff) |
* bignum.c (rb_cstr_to_inum, rb_big2str): allow 2-36 as radix.
* numeric.c (rb_fix2str): ditto.
* string.c (rb_str_to_i): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -1836,12 +1836,6 @@ rb_str_to_i(argc, argv, str) if (argc == 0) base = 10; else base = NUM2INT(b); - switch (base) { - case 0: case 2: case 8: case 10: case 16: - break; - default: - rb_raise(rb_eArgError, "illegal radix %d", base); - } return rb_str_to_inum(str, base, Qfalse); } |