This commit is contained in:
Nuno Cruces
2025-01-24 10:46:05 +00:00
parent c0298ad274
commit 1d951ecd18
20 changed files with 45 additions and 50 deletions

View File

@@ -232,7 +232,7 @@ func (b *bloom) Update(arg ...sqlite3.Value) (rowid int64, err error) {
}
defer f.Close()
for n := 0; n < b.hashes; n++ {
for n := range b.hashes {
hash := calcHash(n, blob)
hash %= uint64(b.bytes * 8)
bitpos := byte(hash % 8)