aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-13 02:51:16 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-13 21:18:40 +0800
commit8d90e6fc4e76ccf41d8ccb59c23920623269cd06 (patch)
treece93451d2306dba53191a58b1f279b825ca19f38 /libsolidity
parentee3a2c0599d3d5db65ab4b7de61e495ad2acd71c (diff)
downloaddexon-solidity-8d90e6fc4e76ccf41d8ccb59c23920623269cd06.tar.gz
dexon-solidity-8d90e6fc4e76ccf41d8ccb59c23920623269cd06.tar.zst
dexon-solidity-8d90e6fc4e76ccf41d8ccb59c23920623269cd06.zip
Rename expectedItems to numVariables
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/inlineasm/AsmAnalysis.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp
index d8aca725..76b0bbd5 100644
--- a/libsolidity/inlineasm/AsmAnalysis.cpp
+++ b/libsolidity/inlineasm/AsmAnalysis.cpp
@@ -175,19 +175,19 @@ bool AsmAnalyzer::operator()(assembly::Assignment const& _assignment)
bool AsmAnalyzer::operator()(assembly::VariableDeclaration const& _varDecl)
{
bool success = true;
- int const expectedItems = _varDecl.variables.size();
+ int const numVariables = _varDecl.variables.size();
if (_varDecl.value)
{
int const stackHeight = m_stackHeight;
success = boost::apply_visitor(*this, *_varDecl.value);
- if ((m_stackHeight - stackHeight) != expectedItems)
+ if ((m_stackHeight - stackHeight) != numVariables)
{
m_errorReporter.declarationError(_varDecl.location, "Variable count mismatch.");
return false;
}
}
else
- m_stackHeight += expectedItems;
+ m_stackHeight += numVariables;
for (auto const& variable: _varDecl.variables)
{