summaryrefslogtreecommitdiff
path: root/value.h
diff options
context:
space:
mode:
Diffstat (limited to 'value.h')
-rw-r--r--value.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/value.h b/value.h
index d2f893b5..c7aad0e7 100644
--- a/value.h
+++ b/value.h
@@ -266,6 +266,7 @@ class value_t
void abs();
void cast(type_t cast_type);
value_t cost() const;
+ value_t factor_price() const;
value_t& add(const amount_t& amount, const amount_t * cost = NULL);
value_t value(const std::time_t moment) const {
@@ -290,7 +291,7 @@ class value_t
case AMOUNT: {
amount_t& amount = *((amount_t *) data);
if (amount.commodity())
- amount = amount.round(amount.commodity().precision);
+ amount = amount.round(amount.commodity().precision());
break;
}
case BALANCE: