]> git.donarmstrong.com Git - rsem.git/blobdiff - boost/random/detail/signed_unsigned_tools.hpp
Updated boost to v1.55.0
[rsem.git] / boost / random / detail / signed_unsigned_tools.hpp
index 3c81cf49c1349918c40a4f11bbf1157724c995b7..988cfb84dbd1b5bbc775c972b6752adab80de2c6 100644 (file)
@@ -73,7 +73,7 @@ struct add<T1, T2, /* signed */ true>
     if (y >= 0)
       return T2(x) + y;
     // y < 0
-    if (x >= T1(-(y+1)))  // result >= 0 after subtraction
+    if (x > T1(-(y+1)))  // result >= 0 after subtraction
       // avoid the nasty two's complement edge case for y == min()
       return T2(x - T1(-(y+1)) - 1);
     // abs(x) < abs(y), thus T2 able to represent x