summaryrefslogtreecommitdiff
path: root/compar.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-22 05:57:08 (GMT)
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-22 05:57:08 (GMT)
commita84982e1292e8e854ab289d3d3c2ae86a195e1b3 (patch)
tree9e01fb4005a33ef34910b9d8f6f8fb2b8654db46 /compar.c
parentedbe98d848e4872654bb5273a6a8250492026c18 (diff)
minor bug fixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 43e3169..ebdd47a 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;
}