|
|
@ -177,8 +177,7 @@ void CompilerUtils::computeHashStatic(Type const& _type, bool _padToWordBoundari |
|
|
|
|
|
|
|
unsigned CompilerUtils::loadFromMemoryHelper(Type const& _type, bool _fromCalldata, bool _padToWordBoundaries) |
|
|
|
{ |
|
|
|
unsigned _encodedSize = _type.getCalldataEncodedSize(); |
|
|
|
unsigned numBytes = _padToWordBoundaries ? getPaddedSize(_encodedSize) : _encodedSize; |
|
|
|
unsigned numBytes = _type.getCalldataEncodedSize(_padToWordBoundaries); |
|
|
|
bool leftAligned = _type.getCategory() == Type::Category::FixedBytes; |
|
|
|
if (numBytes == 0) |
|
|
|
m_context << eth::Instruction::POP << u256(0); |
|
|
|