diff options
Diffstat (limited to 'libdecnumber/decNumber.c')
-rw-r--r-- | libdecnumber/decNumber.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdecnumber/decNumber.c b/libdecnumber/decNumber.c index ebfb6c5dd96..e4194211fdc 100644 --- a/libdecnumber/decNumber.c +++ b/libdecnumber/decNumber.c @@ -6029,11 +6029,11 @@ decNumber * decCompareOp(decNumber *res, const decNumber *lhs, /* If total ordering then handle differing signs 'up front' */ if (op==COMPTOTAL) { /* total ordering */ - if (decNumberIsNegative(lhs) & !decNumberIsNegative(rhs)) { + if (decNumberIsNegative(lhs) && !decNumberIsNegative(rhs)) { result=-1; break; } - if (!decNumberIsNegative(lhs) & decNumberIsNegative(rhs)) { + if (!decNumberIsNegative(lhs) && decNumberIsNegative(rhs)) { result=+1; break; } |