Commit 31c05c4c by Oleksii Matiiasevych Committed by GitHub

Remove excessive condition from SafeMath.safeAdd()

There is no situation when `c>=a` will be `true` while `c>=b` will be `false`.
parent 22018fd3
...@@ -25,7 +25,7 @@ contract SafeMath { ...@@ -25,7 +25,7 @@ contract SafeMath {
function safeAdd(uint a, uint b) internal returns (uint) { function safeAdd(uint a, uint b) internal returns (uint) {
uint c = a + b; uint c = a + b;
assert(c>=a && c>=b); assert(c >= a);
return c; return c;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment