mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* array.c (rb_ary_slice_bang): Call rb_ary_modify_check() at the
beginning. [rubyspec] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d27c31e041
commit
fbf3e22a3d
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed May 28 16:41:59 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* array.c (rb_ary_slice_bang): Call rb_ary_modify_check() at the
|
||||
beginning. [rubyspec]
|
||||
|
||||
Wed May 28 16:12:44 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler#do_GET):
|
||||
|
|
1
array.c
1
array.c
|
@ -1805,6 +1805,7 @@ rb_ary_slice_bang(int argc, VALUE *argv, VALUE ary)
|
|||
VALUE arg1, arg2;
|
||||
long pos, len, orig_len;
|
||||
|
||||
rb_ary_modify_check(ary);
|
||||
if (rb_scan_args(argc, argv, "11", &arg1, &arg2) == 2) {
|
||||
pos = NUM2LONG(arg1);
|
||||
len = NUM2LONG(arg2);
|
||||
|
|
Loading…
Reference in a new issue