mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
corrected ClearBit
This commit is contained in:
parent
4035763ef4
commit
ced399c6fc
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ func (b *Bitmap) SetBit(i uint64) (changed bool) {
|
|||
|
||||
// ClearBit clears the i-th bit of the bitmap.
|
||||
func (b *Bitmap) ClearBit(i uint64) (changed bool) {
|
||||
return b.createSegmentIfNotExists(i / SliceWidth).SetBit(i)
|
||||
return b.createSegmentIfNotExists(i / SliceWidth).ClearBit(i)
|
||||
}
|
||||
|
||||
func (b *Bitmap) createSegmentIfNotExists(slice uint64) *BitmapSegment {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue