diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-15 04:13:43 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-15 04:13:43 +0000 |
commit | 6b6a41d1e78ef3deabbe63a77e8e335d8bb684cb (patch) | |
tree | f9818d4442af13b06a048ffaef3bd3dec39c0b30 | |
parent | 05270882aefe8cf9206e4e6dc2d537a7e91dcf86 (diff) | |
download | ruby-6b6a41d1e78ef3deabbe63a77e8e335d8bb684cb.tar.gz |
* array.c (rb_ary_push_m): use rb_ary_modify instead of
rb_ary_modify_check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | array.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Feb 15 13:11:47 2010 NARUSE, Yui <naruse@ruby-lang.org> + + * array.c (rb_ary_push_m): use rb_ary_modify instead of + rb_ary_modify_check. + Sun Feb 14 12:54:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * marshal.c (r_object0): removed duplicated entry for regexp. @@ -751,7 +751,7 @@ rb_ary_push_1(VALUE ary, VALUE item) static VALUE rb_ary_push_m(int argc, VALUE *argv, VALUE ary) { - rb_ary_modify_check(ary); + rb_ary_modify(ary); while (argc--) { rb_ary_push_1(ary, *argv++); } |