Skip to content

Commit

Permalink
[fix] self-concat of array fails when not using len copyInto overload
Browse files Browse the repository at this point in the history
resolves #5141
kares committed Apr 16, 2018

Verified

This commit was signed with the committer’s verified signature.
headius Charles Oliver Nutter
1 parent 3c599d4 commit 3c691ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -95,12 +95,12 @@ public void copyInto(IRubyObject[] target, int start) {
@Override
public void copyInto(IRubyObject[] target, int start, int len) {
if (!packed()) {
super.copyInto(target, start);
super.copyInto(target, start, len);
return;
}
if (len != 1) {
unpack();
super.copyInto(target, start);
super.copyInto(target, start, len);
return;
}
target[start] = value;

0 comments on commit 3c691ec

Please sign in to comment.