mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enum.c (enum_sort_by): should replace with last elements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fa6dc283cd
commit
ca1a9450fb
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Dec 9 22:15:59 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* enum.c (enum_sort_by): should replace with last elements.
|
||||
|
||||
Sun Dec 9 18:06:26 2001 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/protocol.rb: calls on_connect before conn_command
|
||||
|
|
2
enum.c
2
enum.c
|
@ -250,7 +250,7 @@ enum_sort_by(obj)
|
|||
rb_ary_sort_inplace(ary);
|
||||
for (i=0; i<RARRAY(ary)->len; i++) {
|
||||
VALUE e = RARRAY(ary)->ptr[i];
|
||||
RARRAY(ary)->ptr[i] = RARRAY(e)->ptr[2];
|
||||
RARRAY(ary)->ptr[i] = RARRAY(e)->ptr[RARRAY(e)->len - 1];
|
||||
}
|
||||
|
||||
return ary;
|
||||
|
|
Loading…
Reference in a new issue