diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-29 01:16:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-29 01:16:52 +0800 |
commit | dad6a9ad08082481ec67aa6adc2f38e62a779165 (patch) | |
tree | 5871cb1bc725c1118dce04ffcc6554bd083c5a7c /libsolidity/codegen/ExpressionCompiler.cpp | |
parent | 96fb3b4945557aaada84a1c802d24ff153e1fef7 (diff) | |
parent | 6a708b0cfe245499f85f7260f7267b399c9a7fcb (diff) | |
download | dexon-solidity-dad6a9ad08082481ec67aa6adc2f38e62a779165.tar dexon-solidity-dad6a9ad08082481ec67aa6adc2f38e62a779165.tar.gz dexon-solidity-dad6a9ad08082481ec67aa6adc2f38e62a779165.tar.bz2 dexon-solidity-dad6a9ad08082481ec67aa6adc2f38e62a779165.tar.lz dexon-solidity-dad6a9ad08082481ec67aa6adc2f38e62a779165.tar.xz dexon-solidity-dad6a9ad08082481ec67aa6adc2f38e62a779165.tar.zst dexon-solidity-dad6a9ad08082481ec67aa6adc2f38e62a779165.zip |
Merge pull request #2457 from ethereum/fixNegativeStackHeight
Fix negative stack height
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index a65549fd..9d4024c9 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -88,6 +88,7 @@ void ExpressionCompiler::appendStateVariableAccessor(VariableDeclaration const& FunctionType accessorType(_varDecl); TypePointers paramTypes = accessorType.parameterTypes(); + m_context.adjustStackOffset(1 + CompilerUtils::sizeOnStack(paramTypes)); // retrieve the position of the variable auto const& location = m_context.storageLocationOfVariable(_varDecl); |