Bugfix in code generator.

This commit is contained in:
chriseth 2016-10-28 17:30:56 +02:00
parent 502cc319d7
commit cc847df3c2

View File

@ -234,7 +234,7 @@ void StorageItem::storeValue(Type const& _sourceType, SourceLocation const& _loc
<< Instruction::MUL;
m_context << Instruction::NOT << Instruction::AND << Instruction::SWAP1;
// stack: value storage_ref cleared_value multiplier
utils.copyToStackTop(4, m_dataType->sizeOnStack());
utils.copyToStackTop(3 + m_dataType->sizeOnStack(), m_dataType->sizeOnStack());
// stack: value storage_ref cleared_value multiplier value
if (
m_dataType->category() == Type::Category::Function &&