mirror of
https://github.com/crashoz/uuid_v4.git
synced 2024-12-15 03:40:14 +08:00
parent
fb4909a468
commit
faf088bebd
@ -165,7 +165,7 @@ class UUID {
|
||||
// It's faster to compare two uint64_t
|
||||
uint64_t *x = (uint64_t*)lhs.data;
|
||||
uint64_t *y = (uint64_t*)rhs.data;
|
||||
return *x < *y || *(x+1) < *(y+1);
|
||||
return *x < *y || (*x == *y && *(x + 1) < *(y + 1));
|
||||
}
|
||||
|
||||
friend bool operator!=(const UUID &lhs, const UUID &rhs) { return !(lhs == rhs); }
|
||||
|
Loading…
Reference in New Issue
Block a user