summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-29 23:32:29 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-29 23:32:29 -0400
commit63367e3aac062a7b55a3ba5c36a6c7fffbb6e2cc (patch)
tree6af161c7d0a7ca78a26f8b1f1f57426acddf9be9 /valexpr.cc
parent2d62f7b633bdaa39c650bb67425514cf1e66a4dd (diff)
downloadfork-ledger-63367e3aac062a7b55a3ba5c36a6c7fffbb6e2cc.tar.gz
fork-ledger-63367e3aac062a7b55a3ba5c36a6c7fffbb6e2cc.tar.bz2
fork-ledger-63367e3aac062a7b55a3ba5c36a6c7fffbb6e2cc.zip
the amount/balance/value logic is now a library, completely separate from ledger
Diffstat (limited to 'valexpr.cc')
-rw-r--r--valexpr.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/valexpr.cc b/valexpr.cc
index 2618553e..7e2a6da0 100644
--- a/valexpr.cc
+++ b/valexpr.cc
@@ -218,9 +218,8 @@ void value_expr_t::compute(value_t& result, const details_t& details) const
// jww (2004-08-17): do something smarter here?
result.cast(value_t::AMOUNT);
}
- // jww (2004-08-29): maybe this should be strip_commodity?
if (result.type == value_t::AMOUNT)
- ((amount_t *) result.data)->set_commodity(*commodity_t::null_commodity);
+ ((amount_t *) result.data)->clear_commodity();
break;
}