mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Padding fixes.
This commit is contained in:
parent
9f8c2620da
commit
8d5ee59ee5
@ -828,7 +828,7 @@ unsigned ExpressionCompiler::appendExpressionCopyToMemory(Type const& _expectedT
|
||||
{
|
||||
_expression.accept(*this);
|
||||
appendTypeConversion(*_expression.getType(), _expectedType, true);
|
||||
unsigned const c_numBytes = _expectedType.getCalldataEncodedSize();
|
||||
unsigned const c_numBytes = CompilerUtils::getPaddedSize(_expectedType.getCalldataEncodedSize());
|
||||
if (c_numBytes == 0 || c_numBytes > 32)
|
||||
BOOST_THROW_EXCEPTION(CompilerError()
|
||||
<< errinfo_sourceLocation(_expression.getLocation())
|
||||
|
Loading…
Reference in New Issue
Block a user