Improve COutPoint less operator

This commit is contained in:
João Barbosa
2016-03-18 04:14:19 +00:00
parent f034bced26
commit 0f176927f8
2 changed files with 7 additions and 4 deletions

View File

@@ -34,7 +34,8 @@ public:
friend bool operator<(const COutPoint& a, const COutPoint& b)
{
return (a.hash < b.hash || (a.hash == b.hash && a.n < b.n));
int cmp = a.hash.Compare(b.hash);
return cmp < 0 || (cmp == 0 && a.n < b.n);
}
friend bool operator==(const COutPoint& a, const COutPoint& b)