mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10753 from ethereum/ir-negate
Fix YulUtilFunctions::negateNumberWrappingFunction
This commit is contained in:
@@ -3765,7 +3765,7 @@ string YulUtilFunctions::negateNumberWrappingFunction(Type const& _type)
|
||||
return m_functionCollector.createFunction(functionName, [&]() {
|
||||
return Whiskers(R"(
|
||||
function <functionName>(value) -> ret {
|
||||
value := <cleanupFunction>(sub(0, value)))
|
||||
ret := <cleanupFunction>(sub(0, value))
|
||||
}
|
||||
)")
|
||||
("functionName", functionName)
|
||||
|
||||
Reference in New Issue
Block a user