mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Implement signed multiplication for sol->yul code generation.
This commit is contained in:
committed by
chriseth
parent
e4c884ae13
commit
a5b9f634ef
@@ -1136,8 +1136,7 @@ string IRGeneratorForStatements::binaryOperation(
|
||||
fun = m_utils.overflowCheckedIntSubFunction(*type);
|
||||
break;
|
||||
case Token::Mul:
|
||||
if (!type->isSigned())
|
||||
fun = m_utils.overflowCheckedUIntMulFunction(type->numBits());
|
||||
fun = m_utils.overflowCheckedIntMulFunction(*type);
|
||||
break;
|
||||
case Token::Div:
|
||||
fun = m_utils.overflowCheckedIntDivFunction(*type);
|
||||
|
||||
Reference in New Issue
Block a user