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
7f33f15da3
commit
fdec47d880
@ -705,7 +705,7 @@ LinkerObject const& Assembly::assemble(bool eof) const
|
|||||||
if (eof)
|
if (eof)
|
||||||
{
|
{
|
||||||
assertThrow(codeLength > 0 && codeLength <= 0xffff, AssemblyException, "Invalid code section size.");
|
assertThrow(codeLength > 0 && codeLength <= 0xffff, AssemblyException, "Invalid code section size.");
|
||||||
toBigEndian(uint16_t(codeLength), eofCodeLength);
|
toBigEndian(codeLength, eofCodeLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto const dataStart = ret.bytecode.size();
|
auto const dataStart = ret.bytecode.size();
|
||||||
@ -778,7 +778,7 @@ LinkerObject const& Assembly::assemble(bool eof) const
|
|||||||
if (eof)
|
if (eof)
|
||||||
{
|
{
|
||||||
assertThrow(/*dataLength >= 0 && */ dataLength <= 0xffff, AssemblyException, "Invalid data section size.");
|
assertThrow(/*dataLength >= 0 && */ dataLength <= 0xffff, AssemblyException, "Invalid data section size.");
|
||||||
toBigEndian(uint16_t(dataLength), eofDataLength);
|
toBigEndian(dataLength, eofDataLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user