diff options
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amount.cc b/src/amount.cc index 37690c76..5958962d 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -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; |