diff options
author | chriseth <chris@ethereum.org> | 2018-11-27 22:28:20 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-11-27 23:00:22 +0800 |
commit | fb2e471d00d41dece0152b14ef209aa4e4b2d60d (patch) | |
tree | 554b4388d4cfd74c4a83af73b7da1aca7bab595d /libevmasm | |
parent | 5e55cb17299e1c8f9a685637703e9bd956cfc826 (diff) | |
download | dexon-solidity-fb2e471d00d41dece0152b14ef209aa4e4b2d60d.tar.gz dexon-solidity-fb2e471d00d41dece0152b14ef209aa4e4b2d60d.tar.zst dexon-solidity-fb2e471d00d41dece0152b14ef209aa4e4b2d60d.zip |
Fix nondeterminism bug related to boost version.
Diffstat (limited to 'libevmasm')
-rw-r--r-- | libevmasm/ConstantOptimiser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/ConstantOptimiser.cpp b/libevmasm/ConstantOptimiser.cpp index 9844ba3a..ae1a5643 100644 --- a/libevmasm/ConstantOptimiser.cpp +++ b/libevmasm/ConstantOptimiser.cpp @@ -193,7 +193,7 @@ AssemblyItems ComputeMethod::findRepresentation(u256 const& _value) bigint bestGas = gasNeeded(routine); for (unsigned bits = 255; bits > 8 && m_maxSteps > 0; --bits) { - unsigned gapDetector = unsigned(_value >> (bits - 8)) & 0x1ff; + unsigned gapDetector = unsigned((_value >> (bits - 8)) & 0x1ff); if (gapDetector != 0xff && gapDetector != 0x100) continue; |