From c4207a79d7250f95d259678d0e4077a2a39b1d32 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 24 Feb 2009 14:55:05 -0400 Subject: Allow any two amount values to be divided --- src/value.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/value.cc') diff --git a/src/value.cc b/src/value.cc index 1c2541b8..1706f2fe 100644 --- a/src/value.cc +++ b/src/value.cc @@ -624,12 +624,8 @@ value_t& value_t::operator/=(const value_t& val) return *this; case AMOUNT: - if (as_amount().commodity() == val.as_amount().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; } -- cgit v1.2.3