diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pool.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pool.cc b/src/pool.cc index 2c055d64..73e76644 100644 --- a/src/pool.cc +++ b/src/pool.cc @@ -257,7 +257,7 @@ commodity_pool_t::exchange(const amount_t& amount, current_annotation = &as_annotated_commodity(commodity).details; amount_t per_unit_cost = - (is_per_unit || amount.is_realzero()) ? cost.abs() : (cost / amount).abs(); + (is_per_unit || amount.is_zero()) ? cost.abs() : (cost / amount).abs(); if (! cost.has_commodity()) per_unit_cost.clear_commodity(); |