mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-06 01:07:06 +08:00
bug fix: bit map for each bit
This commit is contained in:
@@ -74,10 +74,13 @@ func (b *BitMap) ForEachBit(begin int64, end int64, cb Callback) {
|
||||
}
|
||||
bitOffset++
|
||||
offset++
|
||||
if offset >= end {
|
||||
break
|
||||
}
|
||||
}
|
||||
byteIndex++
|
||||
bitOffset = 0
|
||||
if end > 0 && offset == end {
|
||||
if end > 0 && offset >= end {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user