Added a missing call to _dup() in amount_t::in_place_round. Thanks to unit
testing!
This commit is contained in:
parent
1921f01189
commit
c9959f2008
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue