summaryrefslogtreecommitdiff
path: root/compar.c
diff options
context:
space:
mode:
Diffstat (limited to 'compar.c')
-rw-r--r--compar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compar.c b/compar.c
index e8c9286..3b6622c 100644
--- a/compar.c
+++ b/compar.c
@@ -72,6 +72,7 @@ cmp_lt(x, y)
{
VALUE c = rb_funcall(x, cmp, 1, y);
+ if (NIL_P(c)) return Qfalse;
if (rb_cmpint(c) < 0) return Qtrue;
return Qfalse;
}