summaryrefslogtreecommitdiff
path: root/compar.c
diff options
context:
space:
mode:
Diffstat (limited to 'compar.c')
-rw-r--r--compar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compar.c b/compar.c
index 234a86027d..80c4c70ca6 100644
--- a/compar.c
+++ b/compar.c
@@ -53,7 +53,7 @@ cmp_eq(VALUE *a)
{
VALUE c = rb_funcall(a[0], cmp, 1, a[1]);
- if (NIL_P(c)) return Qnil;
+ if (NIL_P(c)) return Qfalse;
if (rb_cmpint(c, a[0], a[1]) == 0) return Qtrue;
return Qfalse;
}
@@ -61,7 +61,7 @@ cmp_eq(VALUE *a)
static VALUE
cmp_failed(void)
{
- return Qnil;
+ return Qfalse;
}
/*