Optimize Math.max and SignedMath.max (#3679)

Co-authored-by: Daniel Liu <liudaniel@qq.com>
This commit is contained in:
Daniel Liu
2022-09-05 22:37:43 +08:00
committed by GitHub
parent 84fafa7832
commit 005a35b02a
3 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ library SignedMath {
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a >= b ? a : b;
return a > b ? a : b;
}
/**