Skip to content

Commit 4ad7b1f

Browse files
authored
Merge pull request scala/scala#9075 from lrytz/fix
2 parents afca118 + 2fe305c commit 4ad7b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/collection/immutable/RedBlackTree.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ private[collection] object RedBlackTree {
851851

852852
private[this] def _union[A, B](t1: Tree[A, B], t2: Tree[A, B])(implicit ordering: Ordering[A]): Tree[A, B] =
853853
if((t1 eq null) || (t1 eq t2)) t2
854-
else if(t1 eq null) t2
854+
else if(t2 eq null) t1
855855
else {
856856
val (l2, _, r2) = split(t2, t1.key)
857857
val tl = _union(t1.left, l2)

0 commit comments

Comments
 (0)