Skip to content

Commit

Permalink
[Truffle] Fix PE of hash literals.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Dec 17, 2014
1 parent 8c9f381 commit 89dd640
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -101,8 +101,8 @@ public RubyHash executeRubyHash(VirtualFrame frame) {

final Object value = keyValues[n + 1].execute(frame);

for (int i = 0; i < end; i += 2) {
if (equalNode.call(frame, key, "eql?", null, storage[i])) {
for (int i = 0; i < n; i += 2) {
if (n < end && equalNode.call(frame, key, "eql?", null, storage[i])) {
storage[i + 1] = value;
continue initializers;
}
Expand Down

0 comments on commit 89dd640

Please sign in to comment.