aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/ConstantOptimiser.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-13 00:52:23 +0800
committerchriseth <c@ethdev.com>2017-01-13 00:53:06 +0800
commit3cfa851f6f4175ef17c4fc1079cda67b516a2d72 (patch)
treef9e385002d1a97f5c88733f13669ba0d28420658 /libevmasm/ConstantOptimiser.cpp
parenta32def5c42af6785ca83842fb583f9bf9d427fd4 (diff)
downloaddexon-solidity-3cfa851f6f4175ef17c4fc1079cda67b516a2d72.tar.gz
dexon-solidity-3cfa851f6f4175ef17c4fc1079cda67b516a2d72.tar.zst
dexon-solidity-3cfa851f6f4175ef17c4fc1079cda67b516a2d72.zip
Minor changes from review.
Diffstat (limited to 'libevmasm/ConstantOptimiser.cpp')
-rw-r--r--libevmasm/ConstantOptimiser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/ConstantOptimiser.cpp b/libevmasm/ConstantOptimiser.cpp
index 601ce812..86244e17 100644
--- a/libevmasm/ConstantOptimiser.cpp
+++ b/libevmasm/ConstantOptimiser.cpp
@@ -60,7 +60,7 @@ unsigned ConstantOptimisationMethod::optimiseConstants(
replacement = copy.execute(_assembly);
optimisations++;
}
- else if (computeGas < literalGas && computeGas < copyGas)
+ else if (computeGas < literalGas && computeGas <= copyGas)
{
replacement = compute.execute(_assembly);
optimisations++;