Remove excessive condition from SafeMath.safeAdd()
There is no situation when `c>=a` will be `true` while `c>=b` will be `false`.
This commit is contained in:
committed by
GitHub
parent
22018fd374
commit
31c05c4c7d
@ -25,7 +25,7 @@ contract SafeMath {
|
||||
|
||||
function safeAdd(uint a, uint b) internal returns (uint) {
|
||||
uint c = a + b;
|
||||
assert(c>=a && c>=b);
|
||||
assert(c >= a);
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user