provided some clarification of CountRange issue

This commit is contained in:
Todd Gruben 2017-08-15 12:33:19 -05:00
parent 7bcbfaef09
commit 89b72cbfc8

View file

@ -234,6 +234,8 @@ func (b *Bitmap) CountRange(start, end uint64) (n uint64) {
// Count containers in between.
for x := i + 1; x < j; x++ {
// Ensure that current container is inside the requested range since
// keys to not have to be consecutive
if ekey < b.keys[x] {
break
}