From a36af5364c82f970fd9503833c04c1b5863e6697 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Fri, 9 Jan 2015 00:58:12 +0100 Subject: Fixing a solAssert in getInterfacefunctions() --- AST.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'AST.cpp') diff --git a/AST.cpp b/AST.cpp index fd4cc57c..1247f325 100644 --- a/AST.cpp +++ b/AST.cpp @@ -60,8 +60,7 @@ map, 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; -- cgit