Update ExpressionCompiler.cpp

This commit is contained in:
RJ 2016-01-10 21:49:36 -06:00
parent 72a641fe9f
commit c78b9c5737

View File

@ -186,6 +186,7 @@ bool ExpressionCompiler::visit(Assignment const& _assignment)
_assignment.leftHandSide().annotation().type _assignment.leftHandSide().annotation().type
); );
utils().convertType(*_assignment.rightHandSide().annotation().type, *type); utils().convertType(*_assignment.rightHandSide().annotation().type, *type);
_assignment.leftHandSide().accept(*this); _assignment.leftHandSide().accept(*this);
solAssert(!!m_currentLValue, "LValue not retrieved."); solAssert(!!m_currentLValue, "LValue not retrieved.");
@ -234,6 +235,7 @@ bool ExpressionCompiler::visit(TupleExpression const& _tuple)
components[i]->annotation().type = arrayType.baseType(); //force conversion components[i]->annotation().type = arrayType.baseType(); //force conversion
utils().storeInMemoryDynamic(*components[i]->annotation().type, true); utils().storeInMemoryDynamic(*components[i]->annotation().type, true);
} }
m_context << eth::Instruction::POP; m_context << eth::Instruction::POP;
} }
else else