This commit is contained in:
Armani Ferrante 2017-11-30 23:23:47 +00:00 committed by GitHub
commit 8aaa3c2c42

View file

@ -40,7 +40,7 @@ func calcBloomIndexes(b []byte) bloomIndexes {
var idxs bloomIndexes
for i := 0; i < len(idxs); i++ {
idxs[i] = (uint(b[2*i])<<8)&2047 + uint(b[2*i+1])
idxs[i] = ((uint(b[2*i]) << 8) + uint(b[2*i+1])) & 2047
}
return idxs
}