mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix YulUtilFunctions::negateNumberWrappingFunction
This commit is contained in:
parent
fe344ed6e5
commit
c15c6d26b7
@ -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)
|
||||
|
@ -6,5 +6,7 @@ contract test {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f() -> true
|
||||
|
Loading…
Reference in New Issue
Block a user