summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-28 07:54:44 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-28 07:54:44 +0000
commitd55bb05153a2fbc8b9b74636cd47351a3d51a4d7 (patch)
treef6b2efb56445e14ab6cc3ae771fd745905d90f03
parente9b3ccfd5feaee8b41e801290ef6e7c8f4d6eb4f (diff)
* 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/branches/ruby_1_8_7@16666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--array.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ad7bc7d..355c8da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed May 28 16:53:39 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):
diff --git a/array.c b/array.c
index fcbb7d4..bcdd29a 100644
--- a/array.c
+++ b/array.c
@@ -2080,6 +2080,7 @@ rb_ary_slice_bang(argc, argv, 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);