зеркало из https://github.com/github/ruby.git
* 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:
Родитель
fa6dc283cd
Коммит
ca1a9450fb
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче