Skip to content

Commit 6da44c5

Browse files
som-snytttxdv
andcommitted
Warn more constant inexactitude
Co-authored-by: "Andrius Bentkus" <andrius.bentkus@gmail.com>
1 parent a6bfe5c commit 6da44c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,7 @@ private[collection] object RedBlackTree {
775775
//see #Tree docs "Colour, mutablity and size encoding"
776776
//we make these final vals because the optimiser inlines them, without reference to the enclosing module
777777
private[RedBlackTree] final val colourBit = 0x80000000
778-
//really its ~colourBit but that doesnt get inlined
779-
private[RedBlackTree] final val colourMask = colourBit - 1
778+
private[RedBlackTree] final val colourMask = ~colourBit
780779
private[RedBlackTree] final val initialBlackCount = colourBit
781780
private[RedBlackTree] final val initialRedCount = 0
782781

0 commit comments

Comments
 (0)