diff options
-rw-r--r-- | src/value.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc index 53e2bdeb..f34d0e48 100644 --- a/src/value.cc +++ b/src/value.cc @@ -573,6 +573,7 @@ value_t& value_t::operator*=(const value_t& val) return *this; case AMOUNT: if (as_amount().commodity() == val.as_amount().commodity() || + ! as_amount().has_commodity() || ! val.as_amount().has_commodity()) { as_amount_lval() *= val.as_amount(); return *this; |