summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/enum.c b/enum.c
index 1e0ec9c30d..4cf490e4ca 100644
--- a/enum.c
+++ b/enum.c
@@ -198,7 +198,7 @@ min_i(i, min)
*min = i;
else {
cmp = rb_funcall(i, id_cmp, 1, *min);
- if (FIX2INT(cmp) < 0)
+ if (FIX2LONG(cmp) < 0)
*min = i;
}
return Qnil;
@@ -214,7 +214,7 @@ min_ii(i, min)
*min = i;
else {
cmp = rb_yield(assoc_new(i, *min));
- if (FIX2INT(cmp) < 0)
+ if (FIX2LONG(cmp) < 0)
*min = i;
}
return Qnil;
@@ -240,7 +240,7 @@ max_i(i, max)
*max = i;
else {
cmp = rb_funcall(i, id_cmp, 1, *max);
- if (FIX2INT(cmp) > 0)
+ if (FIX2LONG(cmp) > 0)
*max = i;
}
return Qnil;
@@ -256,7 +256,7 @@ max_ii(i, max)
*max = i;
else {
cmp = rb_yield(assoc_new(i, *max));
- if (FIX2INT(cmp) > 0)
+ if (FIX2LONG(cmp) > 0)
*max = i;
}
return Qnil;