From 3bb925c1c7fcd224fe57ea0557e9dd92cbd567eb Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Tue, 15 Apr 2025 08:17:45 +0200 Subject: [PATCH] DiscIO/Volume: Fix Partition struct comparison operators --- Source/Core/DiscIO/Volume.h | 5 +---- 1 file changed, 1 insertion(+), 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::max()}; };