mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix compiler warning.
This commit is contained in:
parent
308a726ad1
commit
40cb14cdef
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user