diff options
| author | João Barbosa <[email protected]> | 2016-03-18 04:14:19 +0000 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2016-03-18 08:03:55 +0000 |
| commit | 0f176927f88084f2f1ce329656878d122fb64623 (patch) | |
| tree | 78bc77232fdc748477b850de8219ecd82cd835f2 /src/primitives/transaction.h | |
| parent | Merge #7686: [qt] Remove 0-fee from send dialog (diff) | |
| download | discoin-0f176927f88084f2f1ce329656878d122fb64623.tar.xz discoin-0f176927f88084f2f1ce329656878d122fb64623.zip | |
Improve COutPoint less operator
Diffstat (limited to 'src/primitives/transaction.h')
| -rw-r--r-- | src/primitives/transaction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 07ae39e0b..e124dca36 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -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) |