summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
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;
}