diff --git a/contracts/utils/math/Math.sol b/contracts/utils/math/Math.sol index b1037cf57e5..11bb041a6b7 100644 --- a/contracts/utils/math/Math.sol +++ b/contracts/utils/math/Math.sol @@ -541,7 +541,7 @@ library Math { function boolToUint(bool b) internal pure returns (uint256 u) { /// @solidity memory-safe-assembly assembly { - u := b + u := iszero(iszero(b)) } } }