aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AST.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/AST.cpp b/AST.cpp
index fd4cc57c..1247f325 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -60,8 +60,7 @@ map<FixedHash<4>, FunctionDefinition const*> ContractDefinition::getInterfaceFun
{
FixedHash<4> hash(dev::sha3(f->getCanonicalSignature()));
auto res = exportedFunctions.insert(std::make_pair(hash,f.get()));
- if (!res.second)
- solAssert(false, "Hash collision at Function Definition Hash calculation");
+ solAssert(res.second, "Hash collision at Function Definition Hash calculation");
}
return exportedFunctions;