fixed using string as a type for struct member

This commit is contained in:
LianaHus
2015-09-17 15:15:46 +02:00
parent e89b8d516b
commit e50400082b
3 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -390,7 +390,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
TypeType const& type = dynamic_cast<TypeType const&>(*_functionCall.expression().type());
auto const& structType = dynamic_cast<StructType const&>(*type.actualType());
m_context << u256(max(32u, structType.calldataEncodedSize(true)));
m_context << max(u256(32u), structType.memorySize());
utils().allocateMemory();
m_context << eth::Instruction::DUP1;