We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6bfe5c commit 6da44c5Copy full SHA for 6da44c5
library/src/scala/collection/immutable/RedBlackTree.scala
@@ -775,8 +775,7 @@ private[collection] object RedBlackTree {
775
//see #Tree docs "Colour, mutablity and size encoding"
776
//we make these final vals because the optimiser inlines them, without reference to the enclosing module
777
private[RedBlackTree] final val colourBit = 0x80000000
778
- //really its ~colourBit but that doesnt get inlined
779
- private[RedBlackTree] final val colourMask = colourBit - 1
+ private[RedBlackTree] final val colourMask = ~colourBit
780
private[RedBlackTree] final val initialBlackCount = colourBit
781
private[RedBlackTree] final val initialRedCount = 0
782
0 commit comments