зеркало из https://github.com/github/ruby.git
* enum.c (sort_by_i): internally used object must not be changed
outside. [ruby-dev:24368] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
cf729ce62b
Коммит
3615015df0
|
@ -1,3 +1,8 @@
|
|||
Wed Sep 29 10:58:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* enum.c (sort_by_i): internally used object must not be changed
|
||||
outside. [ruby-dev:24368]
|
||||
|
||||
Mon Sep 27 21:25:12 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_call0): invoke finalizers periodically.
|
||||
|
|
1
enum.c
1
enum.c
|
@ -393,6 +393,7 @@ sort_by_i(i, ary)
|
|||
|
||||
v = rb_yield(i);
|
||||
e = rb_assoc_new(v, i);
|
||||
OBJ_FREEZE(e);
|
||||
rb_ary_push(ary, e);
|
||||
return Qnil;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче