aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index a7b91756b5..22fbf92c38 100644
--- a/array.c
+++ b/array.c
@@ -1067,8 +1067,8 @@ rb_cmpint(cmp)
if (RBIGNUM(cmp)->sign) return 1;
return -1;
}
- if (rb_funcall(id_cmp, '>', 1, INT2FIX(0))) return 1;
- if (rb_funcall(id_cmp, '<', 1, INT2FIX(0))) return -1;
+ if (rb_funcall(cmp, '>', 1, INT2FIX(0))) return 1;
+ if (rb_funcall(cmp, '<', 1, INT2FIX(0))) return -1;
return 0;
}