diff options
author | Christian <c@ethdev.com> | 2015-01-07 19:50:23 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-07 23:22:42 +0800 |
commit | 52240ea88fb037f38d8458d5c4b24fb8dfaa0308 (patch) | |
tree | 8b2fb7112bdd9495fa8eca8e1330cdad358aaa86 /ExpressionCompiler.cpp | |
parent | 95514d1d1b0ab9afdd39e1b35837ecf330362f9f (diff) | |
download | dexon-solidity-52240ea88fb037f38d8458d5c4b24fb8dfaa0308.tar dexon-solidity-52240ea88fb037f38d8458d5c4b24fb8dfaa0308.tar.gz dexon-solidity-52240ea88fb037f38d8458d5c4b24fb8dfaa0308.tar.bz2 dexon-solidity-52240ea88fb037f38d8458d5c4b24fb8dfaa0308.tar.lz dexon-solidity-52240ea88fb037f38d8458d5c4b24fb8dfaa0308.tar.xz dexon-solidity-52240ea88fb037f38d8458d5c4b24fb8dfaa0308.tar.zst dexon-solidity-52240ea88fb037f38d8458d5c4b24fb8dfaa0308.zip |
Bugfix: Use parameter (not argument) type size on stack for function calls.
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 6bf14f55..aa740613 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 |