diff options
author | John Wiegley <johnw@newartisans.com> | 2006-03-04 15:06:52 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 05:48:44 -0400 |
commit | 65682175e14855a3fe16e1c2636b8cb2dffa7610 (patch) | |
tree | 33111de3081eba598c2231048e339d82173cd699 | |
parent | 1d9ed97c24352a2704d869a4b5d51b4bca82bc48 (diff) | |
download | fork-ledger-65682175e14855a3fe16e1c2636b8cb2dffa7610.tar.gz fork-ledger-65682175e14855a3fe16e1c2636b8cb2dffa7610.tar.bz2 fork-ledger-65682175e14855a3fe16e1c2636b8cb2dffa7610.zip |
*** no comment ***
-rw-r--r-- | amount.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -437,10 +437,10 @@ amount_t& amount_t::operator/=(const amount_t& amt) // Increase the value's precision, to capture fractional parts after // the divide. - mpz_ui_pow_ui(divisor, 10, amt.quantity->prec + 6); + mpz_ui_pow_ui(divisor, 10, amt.quantity->prec + 6U); mpz_mul(MPZ(quantity), MPZ(quantity), divisor); mpz_tdiv_q(MPZ(quantity), MPZ(quantity), MPZ(amt.quantity)); - quantity->prec += 6; + quantity->prec += 6U; unsigned int comm_prec = commodity().precision; if (quantity->prec > comm_prec + 6U) { |