summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
Diffstat (limited to 'amount.cc')
-rw-r--r--amount.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/amount.cc b/amount.cc
index 1c1155ff..d7cf0d88 100644
--- a/amount.cc
+++ b/amount.cc
@@ -144,14 +144,10 @@ static void multiply(mpz_t out, const mpz_t l, const mpz_t r)
amount * gmp_amount::copy() const
{
gmp_amount * new_amt = new gmp_amount();
-#if 0
- // Don't copy the price
- new_amt->priced = priced;
- mpz_set(new_amt->price, price);
- new_amt->price_comm = price_comm;
-#endif
+
mpz_set(new_amt->quantity, quantity);
new_amt->quantity_comm = quantity_comm;
+
return new_amt;
}
@@ -242,6 +238,7 @@ amount * gmp_amount::street(bool get_quotes) const
if (amt->commdty() == old->commdty())
break;
}
+
return amt;
}