diff options
| author | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-10-25 23:15:31 +0000 |
|---|---|---|
| committer | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-10-25 23:15:31 +0000 |
| commit | 56d9b14c013a72b506e96c20dfdf919672c48aab (patch) | |
| tree | 62b8c5a018dabeb893d02168b021d601cfe3e8fc | |
| parent | 6d201697e6c3ed306585572312f3ab056fe78460 (diff) | |
| download | external_llvm-56d9b14c013a72b506e96c20dfdf919672c48aab.zip external_llvm-56d9b14c013a72b506e96c20dfdf919672c48aab.tar.gz external_llvm-56d9b14c013a72b506e96c20dfdf919672c48aab.tar.bz2 | |
Clarified operator precedence.
Silenced VC++ warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43372 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | lib/Support/APFloat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index be54cdb..8cc916e 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -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; |
