Fix for gas costs in 32 bit

This commit is contained in:
coffeepots 2018-08-09 15:15:45 +01:00 committed by zah
parent 1bf432fd46
commit 66adba9037
1 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,8 @@ template gasCosts(FeeSchedule: GasFeeSchedule, prefix, ResultGasCostsName: untyp
# M(currentMemSize, f, l) = currentMemSize
let
prev_words = currentMemSize.wordCount
new_words = (memOffset + memLength).wordCount
prev_words: int64 = currentMemSize.wordCount
new_words: int64 = (memOffset + memLength).wordCount
if memLength == 0 or new_words <= prev_words:
# Special subcase of memory-expansion cost