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 42fb4a0af9..b4304b594c 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;