mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
eth/protocols/eth: fix 32bit build
This commit is contained in:
parent
5c4cc56d3d
commit
3197db8b83
1 changed files with 1 additions and 1 deletions
|
|
@ -453,7 +453,7 @@ func newDerivableRawList[T any](list *rlp.RawList[T], write func([]byte, *bytes.
|
||||||
}
|
}
|
||||||
// Assert to ensure 32-bit offsets are valid. This can never trigger
|
// Assert to ensure 32-bit offsets are valid. This can never trigger
|
||||||
// unless a block body component or p2p receipt list is larger than 4GB.
|
// unless a block body component or p2p receipt list is larger than 4GB.
|
||||||
if len(dl.data) > math.MaxUint32 {
|
if uint(len(dl.data)) > math.MaxUint32 {
|
||||||
panic("list data too big for derivableRawList")
|
panic("list data too big for derivableRawList")
|
||||||
}
|
}
|
||||||
it := list.ContentIterator()
|
it := list.ContentIterator()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue