diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-29 01:58:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-29 01:58:43 +0000 |
commit | 3615015df08416dbc83393d4bf8f4906ae4c7242 (patch) | |
tree | 677a10dcf1cd1be40f6cdd7a5e75e0806774a1b9 /enum.c | |
parent | cf729ce62bdc8f645c22aebc502a81e5ff0dc949 (diff) | |
download | ruby-3615015df08416dbc83393d4bf8f4906ae4c7242.tar.gz |
* 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
Diffstat (limited to 'enum.c')
-rw-r--r-- | enum.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |