diff options
author | Gav Wood <g@ethdev.com> | 2015-01-07 23:35:19 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-01-07 23:35:19 +0800 |
commit | a2375542e6d369da4669ba2e29db08b89a19b17f (patch) | |
tree | d1a913b84d8f47c804c4ff513a3f75c5b96fb736 | |
parent | 53e38b3ac96cb9b420d24008dadeb95e44eee980 (diff) | |
parent | 52240ea88fb037f38d8458d5c4b24fb8dfaa0308 (diff) | |
download | dexon-solidity-a2375542e6d369da4669ba2e29db08b89a19b17f.tar dexon-solidity-a2375542e6d369da4669ba2e29db08b89a19b17f.tar.gz dexon-solidity-a2375542e6d369da4669ba2e29db08b89a19b17f.tar.bz2 dexon-solidity-a2375542e6d369da4669ba2e29db08b89a19b17f.tar.lz dexon-solidity-a2375542e6d369da4669ba2e29db08b89a19b17f.tar.xz dexon-solidity-a2375542e6d369da4669ba2e29db08b89a19b17f.tar.zst dexon-solidity-a2375542e6d369da4669ba2e29db08b89a19b17f.zip |
Merge pull request #741 from chriseth/sol_fix_useParameterStackSize
Bugfix: Use parameter (not argument) type size on stack for function calls.
-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 |