summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-07 00:20:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-07 00:20:16 +0000
commitcde930a4a4005da1d8e1a1ced719433fd07e3d3f (patch)
treee196d0de10c091187b6d93225d2d9b0cd51ae0dc /string.c
parent1c536c2a98fabbe6e5af65eea61617e2df06091c (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 42fb4a0..b4304b5 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;