summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-11 03:06:50 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-11 03:06:50 -0500
commit2303aa993cf41ad5bde8f8f5722bd265c11e3aa7 (patch)
treec5ff39ce90a7ef74900b723f58495eb895e2bc1d /src/value.cc
parent0d9d8453387e0f49f0dd4ea4b5f090da91c283bd (diff)
downloadfork-ledger-2303aa993cf41ad5bde8f8f5722bd265c11e3aa7.tar.gz
fork-ledger-2303aa993cf41ad5bde8f8f5722bd265c11e3aa7.tar.bz2
fork-ledger-2303aa993cf41ad5bde8f8f5722bd265c11e3aa7.zip
Allow balances to be passed to nail_down
Fixes #679
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.cc b/src/value.cc
index 97328c37..c4e7170d 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -724,7 +724,7 @@ value_t& value_t::operator/=(const value_t& val)
return *this;
case AMOUNT:
if (as_balance().single_amount()) {
- in_place_simplify();
+ in_place_cast(AMOUNT);
as_amount_lval() /= val.as_amount();
return *this;
}