Skip to content

Commit c8b9cb7

Browse files
committed
Fix error in HashMap.HashMapCollision1.merge0
1 parent 53d8150 commit c8b9cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/collection/immutable/HashMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ object HashMap extends ImmutableMapFactory[HashMap] with BitOperations.Int {
297297
protected override def merge0[B1 >: B](that: HashMap[A, B1], level: Int, merger: Merger[A, B1]): HashMap[A, B1] = {
298298
// this can be made more efficient by passing the entire ListMap at once
299299
var m = that
300-
for (p <- kvs) m = m.updated0(p._1, this.hash, level, p._2, p, merger)
300+
for (p <- kvs) m = m.updated0(p._1, this.hash, level, p._2, p, merger.invert)
301301
m
302302
}
303303
}

0 commit comments

Comments
 (0)