summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-15 04:13:43 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-15 04:13:43 +0000
commit6b6a41d1e78ef3deabbe63a77e8e335d8bb684cb (patch)
treef9818d4442af13b06a048ffaef3bd3dec39c0b30
parent05270882aefe8cf9206e4e6dc2d537a7e91dcf86 (diff)
* 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--ChangeLog5
-rw-r--r--array.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d4501781fd..7b527c2a9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/array.c b/array.c
index a6c03e9248..02e6d1861d 100644
--- a/array.c
+++ b/array.c
@@ -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++);
}