summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-28 05:42:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-28 05:42:23 +0000
commita59cf8edc58d46e9cf5d39d2f1999e27939304a8 (patch)
tree6d7a2f583a478d8a571baa8d50ca2afc1e84a9c5 /array.c
parent3b4641a4bf1fafce6f91295f4340aa3d900faddc (diff)
* array.c (rb_cmpint): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;
}