From a59cf8edc58d46e9cf5d39d2f1999e27939304a8 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 28 Dec 2001 05:42:23 +0000 Subject: * array.c (rb_cmpint): fixed typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'array.c') 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; } -- cgit v1.2.3