Skip to content

_uncheckedSub ​

Function · src/common/utils/math/UncheckedMath.sol

solidity
function _uncheckedSub(uint256 a, uint256 b) pure returns (uint256)

Subtracts two unsigned integers without checking the result for overflow errors (using safe math).

security-contact: sirt@aragon.org

ParameterTypeDescription
auint256The minuend.
buint256The subtrahend.