From 2dc822291f3ecef34eb0ef2920c395b0e056fbda Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 9 Aug 2004 16:30:00 -0400 Subject: fixed < bug --- balance.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'balance.h') diff --git a/balance.h b/balance.h index a41bcf6f..7fd3a770 100644 --- a/balance.h +++ b/balance.h @@ -217,6 +217,9 @@ class balance_t if (! ((*i).second < bal.amount((*i).first))) return false; + if (bal.amounts.size() == 0 && amounts.size() == 0) + return false; + return true; } bool operator<=(const balance_t& bal) const { @@ -254,6 +257,9 @@ class balance_t if (! ((*i).second > bal.amount((*i).first))) return false; + if (bal.amounts.size() == 0 && amounts.size() == 0) + return false; + return true; } bool operator>=(const balance_t& bal) const { -- cgit v1.2.3