fix offset check to make sense

This commit is contained in:
Matt Jaffee 2017-05-19 17:09:22 -05:00
parent c0ddbe0e3f
commit a5918d01d9

View file

@ -924,7 +924,7 @@ func (c *container) bitmapCountRange(start, end uint32) int {
// Count partial ending word.
if int(j) < len(c.bitmap) {
if off := 64 - (end % 64); off != 0 {
if off := 64 - (end % 64); off != 64 {
n += popcount(c.bitmap[j] << off)
}
}