diff options
author | chriseth <chris@ethereum.org> | 2017-05-02 22:56:12 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-05-02 22:56:12 +0800 |
commit | b976d53e8726846f3fa0a778dad2290462a5cacc (patch) | |
tree | a9a63309b9fa964fc2f48c67bbbd34153757162b /libevmasm | |
parent | d87eb978956d0859c32af2127dac0050d8e302d6 (diff) | |
download | dexon-solidity-b976d53e8726846f3fa0a778dad2290462a5cacc.tar dexon-solidity-b976d53e8726846f3fa0a778dad2290462a5cacc.tar.gz dexon-solidity-b976d53e8726846f3fa0a778dad2290462a5cacc.tar.bz2 dexon-solidity-b976d53e8726846f3fa0a778dad2290462a5cacc.tar.lz dexon-solidity-b976d53e8726846f3fa0a778dad2290462a5cacc.tar.xz dexon-solidity-b976d53e8726846f3fa0a778dad2290462a5cacc.tar.zst dexon-solidity-b976d53e8726846f3fa0a778dad2290462a5cacc.zip |
Add parentheses for readability.
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 f574ab4a..0c093ebf 100644 --- a/libevmasm/ConstantOptimiser.cpp +++ b/libevmasm/ConstantOptimiser.cpp @@ -203,7 +203,7 @@ AssemblyItems ComputeMethod::findRepresentation(u256 const& _value) u256 powerOfTwo = u256(1) << bits; u256 upperPart = _value >> bits; bigint lowerPart = _value & (powerOfTwo - 1); - if (powerOfTwo - lowerPart < lowerPart) + if ((powerOfTwo - lowerPart) < lowerPart) { lowerPart = lowerPart - powerOfTwo; // make it negative upperPart++; |