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 ce85198873..846364ef49 100644
--- a/compar.c
+++ b/compar.c
@@ -76,11 +76,11 @@ cmp_between(x, min, max)
VALUE x, min, max;
{
VALUE c = rb_funcall(x, cmp, 1, min);
- int t = NUM2INT(c);
+ long t = NUM2LONG(c);
if (t < 0) return FALSE;
c = rb_funcall(x, cmp, 1, max);
- t = NUM2INT(c);
+ t = NUM2LONG(c);
if (t > 0) return FALSE;
return TRUE;
}