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:
Oleksii Matiiasevych
2017-04-12 15:22:52 +08:00
committed by GitHub
parent 22018fd374
commit 31c05c4c7d

View File

@ -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;
}