Skip to content

Commit

Permalink
[Truffle] Fix sequence maintenance in Hash#shift
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Mar 28, 2015
1 parent d96ac07 commit 06e3bff
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -1121,6 +1121,10 @@ public RubyArray shiftBuckets(RubyHash hash) {
hash.setFirstInSequence(first.getNextInSequence());

if (first.getPreviousInSequence() != null) {
first.getPreviousInSequence().setNextInSequence(null);
}

if (first.getNextInSequence() != null) {
first.getNextInSequence().setPreviousInSequence(null);
}

Expand Down

0 comments on commit 06e3bff

Please sign in to comment.