aboutsummaryrefslogtreecommitdiffstats
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
parent478f2997ea8b233882d33e693a0e8df176a0c222 (diff)
downloaddexon-solidity-978884d9cacb7a31cffb46ee1d9aab5ab39a9e24.tar.gz
dexon-solidity-978884d9cacb7a31cffb46ee1d9aab5ab39a9e24.tar.zst
dexon-solidity-978884d9cacb7a31cffb46ee1d9aab5ab39a9e24.zip
Build fix.
-rw-r--r--libsolidity/analysis/ReferencesResolver.cpp6
-rw-r--r--libsolidity/codegen/ContractCompiler.cpp2
2 files changed, 4 insertions, 4 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)
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp
index 7e0be4cb..1794cc23 100644
--- a/libsolidity/codegen/ContractCompiler.cpp
+++ b/libsolidity/codegen/ContractCompiler.cpp
@@ -599,7 +599,7 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly)
}
else
solAssert(false, "Invalid declaration type.");
- solAssert(_assembly.deposit() - depositBefore == ref->second.valueSize, "");
+ solAssert(_assembly.deposit() - depositBefore == int(ref->second.valueSize), "");
}
else
{