diff options
author | chriseth <c@ethdev.com> | 2016-10-28 23:30:56 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-11-16 21:37:18 +0800 |
commit | cc847df3c20982372d601016382b0a93266467a4 (patch) | |
tree | 97dc29eb3057f465000eb0648a072ce8c84d230d /libsolidity/codegen | |
parent | 502cc319d79c28cf398baa737e96c54563b9aafa (diff) | |
download | dexon-solidity-cc847df3c20982372d601016382b0a93266467a4.tar.gz dexon-solidity-cc847df3c20982372d601016382b0a93266467a4.tar.zst dexon-solidity-cc847df3c20982372d601016382b0a93266467a4.zip |
Bugfix in code generator.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r-- | libsolidity/codegen/LValue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/LValue.cpp b/libsolidity/codegen/LValue.cpp index cb7cbbe3..d2c75445 100644 --- a/libsolidity/codegen/LValue.cpp +++ b/libsolidity/codegen/LValue.cpp @@ -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 && |