mirror of https://github.com/apache/lucene.git
LUCENE-10311: avoid division by zero on small sets.
This commit is contained in:
parent
e5717cddfd
commit
e999056c19
|
@ -204,7 +204,7 @@ public final class FixedBitSet extends BitSet {
|
|||
final int rangeLength = 16;
|
||||
final int interval = 1024;
|
||||
|
||||
if (numWords < interval) {
|
||||
if (numWords <= interval) {
|
||||
return cardinality();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue