summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index b36314c915..87411a5284 100644
--- a/string.c
+++ b/string.c
@@ -1761,7 +1761,7 @@ rb_str_to_i(argc, argv, str)
else base = NUM2INT(b);
switch (base) {
- case 2: case 8: case 10: case 16:
+ case 0: case 2: case 8: case 10: case 16:
break;
default:
rb_raise(rb_eArgError, "illegal radix %d", base);