mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +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
|
var idxs bloomIndexes
|
||||||
for i := 0; i < len(idxs); i++ {
|
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
|
return idxs
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue