diff options
author | chriseth <chris@ethereum.org> | 2017-06-07 21:27:26 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-08 21:52:45 +0800 |
commit | 40cb14cdefea38c7b09439210e9eaa8806d609ed (patch) | |
tree | 69019d3b24e8def2db926bacff835c47130b2799 /libjulia/backends/evm/EVMAssembly.cpp | |
parent | 308a726ad180ae9240bca9fe673429db4a0e60e6 (diff) | |
download | dexon-solidity-40cb14cdefea38c7b09439210e9eaa8806d609ed.tar.gz dexon-solidity-40cb14cdefea38c7b09439210e9eaa8806d609ed.tar.zst dexon-solidity-40cb14cdefea38c7b09439210e9eaa8806d609ed.zip |
Fix compiler warning.
Diffstat (limited to 'libjulia/backends/evm/EVMAssembly.cpp')
-rw-r--r-- | libjulia/backends/evm/EVMAssembly.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjulia/backends/evm/EVMAssembly.cpp b/libjulia/backends/evm/EVMAssembly.cpp index 08702d2b..4b16dd24 100644 --- a/libjulia/backends/evm/EVMAssembly.cpp +++ b/libjulia/backends/evm/EVMAssembly.cpp @@ -151,7 +151,7 @@ eth::LinkerObject EVMAssembly::finalize() size_t labelPos = m_labelPositions.at(ref.second); solAssert(labelPos != size_t(-1), "Undefined but allocated label used."); solAssert(m_bytecode.size() >= 4 && referencePos <= m_bytecode.size() - 4, ""); - solAssert(labelPos < (uint64_t(1) << (8 * labelReferenceSize)), ""); + solAssert(uint64_t(labelPos) < (uint64_t(1) << (8 * labelReferenceSize)), ""); for (size_t i = 0; i < labelReferenceSize; i++) m_bytecode[referencePos + i] = byte((labelPos >> (8 * (labelReferenceSize - i - 1))) & 0xff); } |