diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-06 21:38:27 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-06 21:38:27 -0400 |
commit | 5db1e1165b05ae56e0348a4634144072dfcace1f (patch) | |
tree | 18e6f9981d99c8042aa8d93208a8a85ad6382d58 /amount.cc | |
parent | 88df7968809717123d09c45be5709b673a4b7172 (diff) | |
download | fork-ledger-5db1e1165b05ae56e0348a4634144072dfcace1f.tar.gz fork-ledger-5db1e1165b05ae56e0348a4634144072dfcace1f.tar.bz2 fork-ledger-5db1e1165b05ae56e0348a4634144072dfcace1f.zip |
improvements to transaction formatting
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); } |