diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-31 07:28:37 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-31 07:28:37 +0000 |
commit | 7ab214d982d208b6578f599b2477664e67fc39f4 (patch) | |
tree | c99af8dfc9052c81e04eb666a4182bc39e9f0597 | |
parent | 491a7ee7a662b4a8dddaaf850f58798b16bbe3b8 (diff) | |
download | ruby-7ab214d982d208b6578f599b2477664e67fc39f4.tar.gz |
* array.c (ary_shared_first): should address offset after
ary_shared_array(). [ruby-core:09358]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | array.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Oct 31 16:25:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * array.c (ary_shared_first): should address offset after + ary_shared_array(). [ruby-core:09358] + Mon Oct 30 23:40:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> * Makefile.in (miniruby): add XLDFLAGS. @@ -517,6 +517,7 @@ ary_shared_first(int argc, VALUE *argv, VALUE ary, int last) } else { result = ary_shared_array(rb_cArray, ary); + RARRAY(result)->as.heap.ptr += offset; RARRAY(result)->as.heap.len = n; } return result; |