diff options
-rw-r--r-- | sources/scala/collection/BitSet.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scala/collection/BitSet.scala b/sources/scala/collection/BitSet.scala index 9f32a62716..bebdcd7003 100644 --- a/sources/scala/collection/BitSet.scala +++ b/sources/scala/collection/BitSet.scala @@ -87,6 +87,6 @@ abstract class BitSet with Function1[Int,Boolean] { } /** returns number of Int cells needed to store n bits */ - protected def memsize(n:Int) = size >>> 5 + { if(size < 32) 1 else 0 }; + protected def memsize(n:Int) = (size >>> 5) + { if(size < 32) 1 else 0 }; } |