* array.c (rb_cmpint): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3b4641a4bf
commit
a59cf8edc5
@ -1,3 +1,7 @@
|
||||
Fri Dec 28 14:39:05 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* array.c (rb_cmpint): fixed typo.
|
||||
|
||||
Thu Dec 27 18:43:04 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* bignum.c (rb_cstr2inum): deny "0_".
|
||||
|
4
array.c
4
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user