aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-04-22 01:28:52 +0800
committerchriseth <chris@ethereum.org>2017-04-25 22:49:04 +0800
commit978884d9cacb7a31cffb46ee1d9aab5ab39a9e24 (patch)
tree0f01abb81c6b0cabe2da11e88e05a16dba16014e /libsolidity/analysis
parent478f2997ea8b233882d33e693a0e8df176a0c222 (diff)
downloaddexon-solidity-978884d9cacb7a31cffb46ee1d9aab5ab39a9e24.tar
dexon-solidity-978884d9cacb7a31cffb46ee1d9aab5ab39a9e24.tar.gz
dexon-solidity-978884d9cacb7a31cffb46ee1d9aab5ab39a9e24.tar.bz2
dexon-solidity-978884d9cacb7a31cffb46ee1d9aab5ab39a9e24.tar.lz
dexon-solidity-978884d9cacb7a31cffb46ee1d9aab5ab39a9e24.tar.xz
dexon-solidity-978884d9cacb7a31cffb46ee1d9aab5ab39a9e24.tar.zst
dexon-solidity-978884d9cacb7a31cffb46ee1d9aab5ab39a9e24.zip
Build fix.
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/ReferencesResolver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/analysis/ReferencesResolver.cpp b/libsolidity/analysis/ReferencesResolver.cpp
index 2b40b4fd..a8231b13 100644
--- a/libsolidity/analysis/ReferencesResolver.cpp
+++ b/libsolidity/analysis/ReferencesResolver.cpp
@@ -176,11 +176,11 @@ bool ReferencesResolver::visit(InlineAssembly const& _inlineAssembly)
if (!declarations.empty())
// the special identifier exists itself, we should not allow that.
return size_t(-1);
- string realName = _identifier.name.substr(0,
- _identifier.name.size() - isSlot ?
+ string realName = _identifier.name.substr(0, _identifier.name.size() - (
+ isSlot ?
string("_slot").size() :
string("_offset").size()
- );
+ ));
declarations = m_resolver.nameFromCurrentScope(realName);
}
if (declarations.size() != 1)