mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +00:00
core: fix func calcBloomIndexes indexing past 2047
This commit is contained in:
parent
73067fd24f
commit
753d979368
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue