diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-09 00:43:38 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-09 00:43:38 +0800 |
commit | a7b661d3be53b4c6a05401782ab8f90202a4f776 (patch) | |
tree | a2fdb25e88821def4962e1eacf303ec8f89cdfc3 /ExpressionCompiler.cpp | |
parent | 184ddca5a108c5f3d026aa372a2af2f63b2694f9 (diff) | |
parent | d18fa27b6a48540298e835ad324152566586c65c (diff) | |
download | dexon-solidity-a7b661d3be53b4c6a05401782ab8f90202a4f776.tar.gz dexon-solidity-a7b661d3be53b4c6a05401782ab8f90202a4f776.tar.zst dexon-solidity-a7b661d3be53b4c6a05401782ab8f90202a4f776.zip |
merging develop
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r-- | ExpressionCompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp index 5fefd528..1b10c854 100644 --- a/ExpressionCompiler.cpp +++ b/ExpressionCompiler.cpp @@ -217,7 +217,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall) unsigned returnParametersSize = CompilerUtils::getSizeOnStack(function.getReturnParameterTypes()); // callee adds return parameters, but removes arguments and return label - m_context.adjustStackOffset(returnParametersSize - CompilerUtils::getSizeOnStack(arguments) - 1); + m_context.adjustStackOffset(returnParametersSize - CompilerUtils::getSizeOnStack(function.getParameterTypes()) - 1); // @todo for now, the return value of a function is its first return value, so remove // all others |