diff options
-rw-r--r-- | src/value.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/value.cc b/src/value.cc index c3a3a05b..17987bd7 100644 --- a/src/value.cc +++ b/src/value.cc @@ -585,13 +585,8 @@ value_t& value_t::operator*=(const value_t& val) as_amount_lval() *= val.as_long(); 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; - } - break; + as_amount_lval() *= val.as_amount(); + return *this; default: break; } |