Fix negation function name collision.

This commit is contained in:
Daniel Kirchner
2021-07-08 10:47:29 +02:00
parent 46514ffad2
commit 0a6fc89da2
3 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -4029,7 +4029,7 @@ string YulUtilFunctions::negateNumberWrappingFunction(Type const& _type)
IntegerType const& type = dynamic_cast<IntegerType const&>(_type);
solAssert(type.isSigned(), "Expected signed type!");
string const functionName = "negate_" + _type.identifier();
string const functionName = "negate_wrapping_" + _type.identifier();
return m_functionCollector.createFunction(functionName, [&]() {
return Whiskers(R"(
function <functionName>(value) -> ret {