Clarified operator precedence.
authorHartmut Kaiser <hartmut.kaiser@gmail.com>
Thu, 25 Oct 2007 23:15:31 +0000 (23:15 +0000)
committerHartmut Kaiser <hartmut.kaiser@gmail.com>
Thu, 25 Oct 2007 23:15:31 +0000 (23:15 +0000)
Silenced VC++ warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43372 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/APFloat.cpp

index be54cdb52c65ab3d841e0fdcd38f96549a8e1f1a..8cc916e6855bd8201558ebbe3bc0b4fde37c72ab 100644 (file)
@@ -1230,7 +1230,7 @@ APFloat::addOrSubtractSpecials(const APFloat &rhs, bool subtract)
   case convolve(fcInfinity, fcInfinity):
     /* Differently signed infinities can only be validly
        subtracted.  */
-    if(sign ^ rhs.sign != subtract) {
+    if((sign ^ rhs.sign) != subtract) {
       makeNaN();
       return opInvalidOp;
     }
@@ -1252,7 +1252,7 @@ APFloat::addOrSubtractSignificand(const APFloat &rhs, bool subtract)
 
   /* Determine if the operation on the absolute values is effectively
      an addition or subtraction.  */
-  subtract ^= (sign ^ rhs.sign);
+  subtract ^= (sign ^ rhs.sign) ? true : false;
 
   /* Are we bigger exponent-wise than the RHS?  */
   bits = exponent - rhs.exponent;