aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2015-01-07 23:35:19 +0800
committerGav Wood <g@ethdev.com>2015-01-07 23:35:19 +0800
commita2375542e6d369da4669ba2e29db08b89a19b17f (patch)
treed1a913b84d8f47c804c4ff513a3f75c5b96fb736
parent53e38b3ac96cb9b420d24008dadeb95e44eee980 (diff)
parent52240ea88fb037f38d8458d5c4b24fb8dfaa0308 (diff)
downloaddexon-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.cpp2
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