Skip to content

Commit

Permalink
[Truffle] Fix array construction in Hash#each
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Mar 4, 2015
1 parent 88ae22c commit 2360152
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -573,7 +573,7 @@ public RubyHash eachPackedArray(VirtualFrame frame, RubyHash hash, RubyProc bloc
}

if (n < size) {
yield(frame, block, RubyArray.fromObjects(getContext().getCoreLibrary().getArrayClass(), store[n * 2], store[n * 2 + 1]));
yield(frame, block, new RubyArray(getContext().getCoreLibrary().getArrayClass(), new Object[]{store[n * 2], store[n * 2 + 1]}, 2));
}
}
} finally {
Expand Down

0 comments on commit 2360152

Please sign in to comment.