summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
Diffstat (limited to 'amount.cc')
-rw-r--r--amount.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/amount.cc b/amount.cc
index 0b500063..46b0fbb4 100644
--- a/amount.cc
+++ b/amount.cc
@@ -489,6 +489,7 @@ amount_t& amount_t::operator*=(const amount_t& amt)
throw_(amount_error, "Cannot multiply two uninitialized amounts");
}
+#if 0
if (has_commodity() && amt.has_commodity() &&
commodity() != amt.commodity())
throw_(amount_error,
@@ -496,6 +497,7 @@ amount_t& amount_t::operator*=(const amount_t& amt)
(has_commodity() ? commodity().symbol() : "NONE") <<
" != " <<
(amt.has_commodity() ? amt.commodity().symbol() : "NONE"));
+#endif
_dup();
@@ -527,6 +529,7 @@ amount_t& amount_t::operator/=(const amount_t& amt)
throw_(amount_error, "Cannot divide two uninitialized amounts");
}
+#if 0
if (has_commodity() && amt.has_commodity() &&
commodity() != amt.commodity())
throw_(amount_error,
@@ -534,6 +537,7 @@ amount_t& amount_t::operator/=(const amount_t& amt)
(has_commodity() ? commodity().symbol() : "NONE") <<
" != " <<
(amt.has_commodity() ? amt.commodity().symbol() : "NONE"));
+#endif
if (! amt)
throw_(amount_error, "Divide by zero");