From 5a928a5496897d334534b7e025a5e41c9170aedd Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 28 Jan 2002 08:44:45 +0000 Subject: * eval.c (is_defined): defined?(Foo::Baz) should check constants only, no methods. * eval.c (is_defined): should not dump core on defined?(a::b) where a is not a class nor a module. * object.c (Init_Object): remove dup and clone from TrueClass, FalseClass, and NilClass. * array.c (rb_ary_fill): Array#fill takes block to get the value to fill. * string.c (rb_str_to_i): to_i(0) auto-detects base radix. * array.c (rb_ary_initialize): fill by the block evaluation value if block is given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index b36314c91..87411a528 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); -- cgit