mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
metalinter fix
This commit is contained in:
parent
15494becac
commit
790123410f
1 changed files with 3 additions and 3 deletions
|
|
@ -233,15 +233,15 @@ func (b *Bitmap) Count() (n uint64) {
|
|||
}
|
||||
|
||||
// Size returns the number of bytes required for the bitmap.
|
||||
func (b *Bitmap) Size() (numbytes int) {
|
||||
|
||||
func (b *Bitmap) Size() int {
|
||||
numbytes := 0
|
||||
citer, _ := b.Containers.Iterator(0)
|
||||
for citer.Next() {
|
||||
_, c := citer.Value()
|
||||
numbytes += c.size()
|
||||
|
||||
}
|
||||
return
|
||||
return numbytes
|
||||
}
|
||||
|
||||
// CountRange returns the number of bits set between [start, end).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue