diff options
-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; |