Skip to content

Commit

Permalink
fix memory expansion to support up to uint.max instead of int.max (#8030
Browse files Browse the repository at this point in the history
)
  • Loading branch information
smartprogrammer93 authored Jan 9, 2025
1 parent 95a6887 commit 7e0c53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Evm/EvmPooledMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public static long Div32Ceiling(in UInt256 length, out bool outOfGas)
result++;
}

if (result > int.MaxValue)
if (result > uint.MaxValue)
{
outOfGas = true;
return 0;
Expand Down

0 comments on commit 7e0c53c

Please sign in to comment.