diff options
| author | Dr. Dystopia <jonis9898@hotmail.com> | 2025-04-15 08:17:45 +0200 |
|---|---|---|
| committer | Dr. Dystopia <jonis9898@hotmail.com> | 2025-04-15 12:18:23 +0200 |
| commit | 3bb925c1c7fcd224fe57ea0557e9dd92cbd567eb (patch) | |
| tree | 02d4d8071099a879c105cd9248d15d48b5d5a4d9 | |
| parent | 4f210df86a2d2362ef8087cf81b817b18c3d32e9 (diff) | |
DiscIO/Volume: Fix Partition struct comparison operators
| -rw-r--r-- | Source/Core/DiscIO/Volume.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/Volume.h b/Source/Core/DiscIO/Volume.h index 1c216178c3..8ac6d113ed 100644 --- a/Source/Core/DiscIO/Volume.h +++ b/Source/Core/DiscIO/Volume.h @@ -32,10 +32,7 @@ struct Partition final constexpr Partition() = default; constexpr explicit Partition(u64 offset_) : offset(offset_) {} constexpr bool operator==(const Partition& other) const { return offset == other.offset; } - constexpr bool operator<(const Partition& other) const { return offset < other.offset; } - constexpr bool operator>(const Partition& other) const { return other < *this; } - constexpr bool operator<=(const Partition& other) const { return !(*this < other); } - constexpr bool operator>=(const Partition& other) const { return !(*this > other); } + constexpr auto operator<=>(const Partition other) const { return offset <=> other.offset; } u64 offset{std::numeric_limits<u64>::max()}; }; |
