diff options
-rw-r--r-- | chrome/common/transport_dib.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/common/transport_dib.h b/chrome/common/transport_dib.h index e20dd5c..33c0649 100644 --- a/chrome/common/transport_dib.h +++ b/chrome/common/transport_dib.h @@ -56,11 +56,10 @@ class TransportDIB { } bool operator< (const HandleAndSequenceNum& other) const { - if (other.handle < handle) - return true; - if (other.sequence_num < sequence_num) - return true; - return false; + // Use the lexicographic order on the tuple <handle, sequence_num>. + if (other.handle != handle) + return other.handle < handle; + return other.sequence_num < sequence_num; } HANDLE handle; |