From faa903c341b98ba0c5e3fc96abba3af66f166fd7 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 7 Mar 2005 00:20:16 +0000 Subject: * string.c (rb_str_cmp_m): should not return false but nil. fixed: [ruby-dev:25811] * lib/cgi-lib.rb: add deprecation warning. [ruby-dev:25499] getopts.rb, parsearg.rb, importenv.rb as well. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8096 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 42fb4a0af..b4304b594 100644 --- a/string.c +++ b/string.c @@ -1003,7 +1003,7 @@ rb_str_cmp_m(str1, str2) if (TYPE(str2) != T_STRING) { if (!rb_respond_to(str2, rb_intern("to_str"))) { - return Qfalse; + return Qnil; } else if (!rb_respond_to(str2, rb_intern("<=>"))) { return Qnil; -- cgit