mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove typecast (size is determined by output)
This commit is contained in:
parent
eed10c5d81
commit
ab2f46639c
@ -705,7 +705,7 @@ LinkerObject const& Assembly::assemble(bool eof) const
|
||||
if (eof)
|
||||
{
|
||||
assertThrow(codeLength > 0 && codeLength <= 0xffff, AssemblyException, "Invalid code section size.");
|
||||
toBigEndian(uint16_t(codeLength), eofCodeLength);
|
||||
toBigEndian(codeLength, eofCodeLength);
|
||||
}
|
||||
|
||||
auto const dataStart = ret.bytecode.size();
|
||||
@ -778,7 +778,7 @@ LinkerObject const& Assembly::assemble(bool eof) const
|
||||
if (eof)
|
||||
{
|
||||
assertThrow(/*dataLength >= 0 && */ dataLength <= 0xffff, AssemblyException, "Invalid data section size.");
|
||||
toBigEndian(uint16_t(dataLength), eofDataLength);
|
||||
toBigEndian(dataLength, eofDataLength);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user