From 8f373c049cf0e00508551539cd498fcfce6abc94 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 9 Feb 2005 11:49:01 +0000 Subject: (AMOUNT_CMP_AMOUNT): Fixed a very serious error in basic amount math, when lhs is zero. --- amount.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amount.cc b/amount.cc index c2d27538..4489db5f 100644 --- a/amount.cc +++ b/amount.cc @@ -450,7 +450,7 @@ int amount_t::sign() const bool amount_t::operator OP(const amount_t& amt) const \ { \ if (! quantity) \ - return ! (amt OP 0); \ + return amt OP 0; \ if (! amt.quantity) \ return *this OP 0; \ \ -- cgit v1.2.3