Skip to content

Commit e8c1c44

Browse files
committed
* 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/branches/ruby_1_8@6970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 819994a commit e8c1c44

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

ChangeLog

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Wed Sep 29 10:58:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* enum.c (sort_by_i): internally used object must not be changed
4+
outside. [ruby-dev:24368]
5+
16
Wed Sep 22 13:38:12 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
27

38
* hash.c (rb_hash_rehash): add iteration check. [ruby-dev:24301]
@@ -98,7 +103,7 @@ Fri Sep 17 15:01:57 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
98103

99104
* ext/tk/lib/multi-tk.rb: support calling 'mainloop' on slave
100105
interpreters (however, the 'real' eventloop must be run on the
101-
Default Master IP)
106+
Default Master IP)
102107

103108
* ext/tk/lib/remote-tk.rb: follow the changes of ext/tk/lib/multi-tk.rb
104109

@@ -179,7 +184,7 @@ Sun Sep 12 23:46:23 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
179184

180185
Sun Sep 12 02:41:58 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
181186

182-
* ext/tcltklib/tcltklib.c: add TclTkIp#allow_ruby_exit? and
187+
* ext/tcltklib/tcltklib.c: add TclTkIp#allow_ruby_exit? and
183188
allow_ruby_exit=
184189

185190

@@ -215,7 +220,7 @@ Fri Sep 10 02:43:54 2004 Dave Thomas <dave@pragprog.com>
215220

216221
Thu Sep 9 13:58:56 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
217222

218-
* ext/tcltklib/tcltklib.c (ip_init): change flag value for setting
223+
* ext/tcltklib/tcltklib.c (ip_init): change flag value for setting
219224
'argv' and 'argv0' variable
220225

221226
* ext/tk/lib/remote-tk.rb: follow changes of multi-tk.rb

enum.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ sort_by_i(i, ary)
393393

394394
v = rb_yield(i);
395395
e = rb_assoc_new(v, i);
396+
OBJ_FREEZE(e);
396397
rb_ary_push(ary, e);
397398
return Qnil;
398399
}

0 commit comments

Comments
 (0)