fix tiny bugs

This commit is contained in:
finley
2023-02-20 22:43:45 +08:00
parent fb7208c017
commit 7f6edf817e
2 changed files with 11 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ func (b *BitMap) ForEachBit(begin int64, end int64, cb Callback) {
}
bitOffset++
offset++
if offset >= end {
if offset >= end && end != 0 {
break
}
}