Fix for gas costs in 32 bit
This commit is contained in:
parent
1bf432fd46
commit
66adba9037
|
@ -125,8 +125,8 @@ template gasCosts(FeeSchedule: GasFeeSchedule, prefix, ResultGasCostsName: untyp
|
||||||
# M(currentMemSize, f, l) = currentMemSize
|
# M(currentMemSize, f, l) = currentMemSize
|
||||||
|
|
||||||
let
|
let
|
||||||
prev_words = currentMemSize.wordCount
|
prev_words: int64 = currentMemSize.wordCount
|
||||||
new_words = (memOffset + memLength).wordCount
|
new_words: int64 = (memOffset + memLength).wordCount
|
||||||
|
|
||||||
if memLength == 0 or new_words <= prev_words:
|
if memLength == 0 or new_words <= prev_words:
|
||||||
# Special subcase of memory-expansion cost
|
# Special subcase of memory-expansion cost
|
||||||
|
|
Loading…
Reference in New Issue