Added a missing call to _dup() in amount_t::in_place_round. Thanks to unit

testing!
This commit is contained in:
John Wiegley 2008-11-23 23:37:42 -04:00
parent 1921f01189
commit c9959f2008

View file

@ -606,6 +606,7 @@ amount_t& amount_t::in_place_round(precision_t prec)
DEBUG("amount.round", "Rounding " << *this << " to precision " << prec);
_dup();
mpz_round(MPZ(quantity), MPZ(quantity), quantity->prec, prec);
quantity->prec = prec;