From 5db1e1165b05ae56e0348a4634144072dfcace1f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 6 Aug 2004 21:38:27 -0400 Subject: improvements to transaction formatting --- amount.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'amount.cc') diff --git a/amount.cc b/amount.cc index c86177b1..368a366d 100644 --- a/amount.cc +++ b/amount.cc @@ -220,7 +220,7 @@ amount_t& amount_t::operator=(const double value) amount_t& amount_t::operator+=(const amount_t& amt) { if (amt.quantity) { - assert(commodity == amt.commodity); + assert(! commodity || commodity == amt.commodity); INIT(); mpz_add(MPZ(quantity), MPZ(quantity), MPZ(amt.quantity)); } -- cgit v1.2.3