mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* array.c (rb_ary_push_m): add modification check before actual
operation. [ruby-dev:37440] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a89d928bfb
commit
8fb2235f48
2 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,9 @@ Wed Dec 17 15:44:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
|||
|
||||
* array.c (rb_ary_pop_m): use enum ary_take_pos_flags.
|
||||
|
||||
* array.c (rb_ary_push_m): add modification check before actual
|
||||
operation. [ruby-dev:37440]
|
||||
|
||||
Wed Dec 17 15:35:39 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* configure.in (OBJDUMP, OBJCOPY):
|
||||
|
|
1
array.c
1
array.c
|
@ -693,6 +693,7 @@ rb_ary_push(VALUE ary, VALUE item)
|
|||
static VALUE
|
||||
rb_ary_push_m(int argc, VALUE *argv, VALUE ary)
|
||||
{
|
||||
rb_ary_modify_check(ary);
|
||||
while (argc--) {
|
||||
rb_ary_push(ary, *argv++);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue