diff options
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.cc b/src/value.cc index 5ce30530..18e78ab5 100644 --- a/src/value.cc +++ b/src/value.cc @@ -887,7 +887,7 @@ bool value_t::is_less_than(const value_t& val) const ! val.as_amount().has_commodity()) return as_amount() < val.as_amount(); else - return commodity_t::compare_by_commodity()(&as_amount(), &val.as_amount()); + return commodity_t::compare_by_commodity()(&as_amount(), &val.as_amount()) < 0; case BALANCE: return val.to_amount() > as_amount(); default: |