Browse Source

Merge pull request #190 from lastperson/patch-1

Remove excessive condition from SafeMath.safeAdd()
Manuel Aráoz 8 years ago
parent
commit
70a4395a97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contracts/SafeMath.sol

+ 1 - 1
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;
   }