mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
491a7ee7a6
commit
7ab214d982
2 changed files with 6 additions and 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>
|
Mon Oct 30 23:40:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* Makefile.in (miniruby): add XLDFLAGS.
|
* Makefile.in (miniruby): add XLDFLAGS.
|
||||||
|
|
1
array.c
1
array.c
|
@ -517,6 +517,7 @@ ary_shared_first(int argc, VALUE *argv, VALUE ary, int last)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
result = ary_shared_array(rb_cArray, ary);
|
result = ary_shared_array(rb_cArray, ary);
|
||||||
|
RARRAY(result)->as.heap.ptr += offset;
|
||||||
RARRAY(result)->as.heap.len = n;
|
RARRAY(result)->as.heap.len = n;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue