8306930: Incorrect assert in BitMap::count_one_bits

Reviewed-by: stefank, tschatzl, kbarrett
This commit is contained in:
Fredrik Bredberg 2023-05-10 07:55:11 +00:00 committed by Stefan Karlsson
parent 4b4c80bb31
commit d993432d44

View File

@ -638,7 +638,7 @@ BitMap::idx_t BitMap::count_one_bits(idx_t beg, idx_t end) const {
sum += count_one_bits_within_word(boundary, end);
}
assert(sum <= (beg - end), "must be");
assert(sum <= (end - beg), "must be");
return sum;