summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc8
1 files changed, 2 insertions, 6 deletions
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;
}