aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-03 21:21:08 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-06 16:38:04 +0800
commitf09c6fffc9f55b5208560d6550134bf854970db8 (patch)
tree71f01d16baf56693f9526734c63cde9d0bafb22e /ExpressionCompiler.cpp
parent8c1d928c944b70cf7318d8277cdfbf2ef0421857 (diff)
downloaddexon-solidity-f09c6fffc9f55b5208560d6550134bf854970db8.tar.gz
dexon-solidity-f09c6fffc9f55b5208560d6550134bf854970db8.tar.zst
dexon-solidity-f09c6fffc9f55b5208560d6550134bf854970db8.zip
Renaming a function for clarity
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index 8672611a..0acc9c9e 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -275,7 +275,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
m_context << u256(0) << eth::Instruction::CODECOPY;
unsigned length = bytecode.size();
- length += appendArgumentCopyToMemory(function.getParameterTypes(), arguments, length);
+ length += appendArgumentsCopyToMemory(function.getParameterTypes(), arguments, length);
// size, offset, endowment
m_context << u256(length) << u256(0);
if (function.valueSet())
@@ -800,7 +800,7 @@ void ExpressionCompiler::appendExternalFunctionCall(FunctionType const& _functio
// reserve space for the function identifier
unsigned dataOffset = bare ? 0 : CompilerUtils::dataStartOffset;
- dataOffset += appendArgumentCopyToMemory(_functionType.getParameterTypes(), _arguments, dataOffset);
+ dataOffset += appendArgumentsCopyToMemory(_functionType.getParameterTypes(), _arguments, dataOffset);
//@todo only return the first return value for now
Type const* firstType = _functionType.getReturnParameterTypes().empty() ? nullptr :
@@ -836,9 +836,9 @@ void ExpressionCompiler::appendExternalFunctionCall(FunctionType const& _functio
}
}
-unsigned ExpressionCompiler::appendArgumentCopyToMemory(TypePointers const& _types,
- vector<ASTPointer<Expression const>> const& _arguments,
- unsigned _memoryOffset)
+unsigned ExpressionCompiler::appendArgumentsCopyToMemory(TypePointers const& _types,
+ vector<ASTPointer<Expression const>> const& _arguments,
+ unsigned _memoryOffset)
{
unsigned length = 0;
for (unsigned i = 0; i < _arguments.size(); ++i)