From 501fbc08ae5493db77bb34f4c4fbe1f3a3bc14e3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 15 Mar 2019 17:24:46 -0700 Subject: Change compare_by_commodity to return an integer --- src/value.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/value.cc') 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: -- cgit v1.2.3