Remove excessive condition from SafeMath.safeAdd()

There is no situation when `c>=a` will be `true` while `c>=b` will be `false`.
pull/190/head
Oleksii Matiiasevych 8 years ago committed by GitHub
parent 22018fd374
commit 31c05c4c7d
  1. 2
      contracts/SafeMath.sol

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

Loading…
Cancel
Save