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
  • Loading branch information
kares committed Apr 16, 2018
1 parent 3c599d4 commit 3c691ec
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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;
Expand Down

0 comments on commit 3c691ec

Please sign in to comment.