Skip to content

Conversation

gballet
Copy link
Member

@gballet gballet commented Oct 13, 2025

The limit check for MaxUint32 is done after the cast to int. On 64 bits machines, that will work without a problem. On 32 bits machines, that will always fail. The compiler catches it and refuses to build.

Note that this only fixes the compiler build. If the limit is above MaxInt32 but strictly below MaxUint32 then this will fail at runtime and we have another issue. I checked and this should not happen during regular execution, although it might happen in tests.

@gballet gballet requested a review from rjl493456442 as a code owner October 13, 2025 15:54
@rjl493456442 rjl493456442 added this to the 1.16.5 milestone Oct 14, 2025
@rjl493456442 rjl493456442 merged commit 52c484d into ethereum:master Oct 14, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants