mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 16:57:06 +08:00
fix tiny bugs
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user