apache/lucene-solr — pull request #113 by LucVL (2014-12-12 17:00:24+00:00)
Title: BitSet fixes

* `LongBitSet.ensureCapacity` overflows on `numBits > Integer.MaxValue`
* `Fixed-/LongBitSet`: Avoid conditional branch in `bits2words` (with a comment explaining the formula)

TODO:
* Harmonize the use of `numWords` vs. `bits.length` vs. `numBits`
* E.g.: `cardinality` scans up to `bits.length`, while `or` asserts on `index