summaryrefslogtreecommitdiff
path: root/compar.c
diff options
context:
space:
mode:
Diffstat (limited to 'compar.c')
-rw-r--r--compar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compar.c b/compar.c
index 43e31693f34..ebdd47a8d79 100644
--- a/compar.c
+++ b/compar.c
@@ -22,7 +22,7 @@ cmp_equal(x, y)
{
VALUE c = rb_funcall(x, cmp, 1, y);
- if (NIL_P(c)) return Qnil;
+ if (NIL_P(c)) return Qfalse;
if (NUM2LONG(c) == 0) return Qtrue;
return Qfalse;
}