Skip to content
Permalink
Browse files
[Truffle] Fix PE of hash literals.
  • Loading branch information
chrisseaton committed Dec 17, 2014
1 parent 8c9f381 commit 89dd640fdfb0f29bb9295fb49c006c082b5232b9
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/main/java/org/jruby/truffle/nodes/literal/HashLiteralNode.java
@@ -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;
}

0 comments on commit 89dd640

Please sign in to comment.