From 66adba9037440409cf8a62e69138a49847a04e55 Mon Sep 17 00:00:00 2001 From: coffeepots Date: Thu, 9 Aug 2018 15:15:45 +0100 Subject: [PATCH] Fix for gas costs in 32 bit --- nimbus/vm/interpreter/gas_costs.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimbus/vm/interpreter/gas_costs.nim b/nimbus/vm/interpreter/gas_costs.nim index a919c5b5e..a409a1dfc 100644 --- a/nimbus/vm/interpreter/gas_costs.nim +++ b/nimbus/vm/interpreter/gas_costs.nim @@ -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