Skip to content

Commit

Permalink
Merge pull request OpenZeppelin#190 from lastperson/patch-1
Browse files Browse the repository at this point in the history
Remove excessive condition from SafeMath.safeAdd()
  • Loading branch information
maraoz authored Apr 12, 2017
2 parents 22018fd + 31c05c4 commit 70a4395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/SafeMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 70a4395

Please sign in to comment.