mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DiscIO/Volume: Fix Partition struct comparison operators
This commit is contained in:
@ -32,10 +32,7 @@ struct Partition final
|
|||||||
constexpr Partition() = default;
|
constexpr Partition() = default;
|
||||||
constexpr explicit Partition(u64 offset_) : offset(offset_) {}
|
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 offset < other.offset; }
|
constexpr auto 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); }
|
|
||||||
u64 offset{std::numeric_limits<u64>::max()};
|
u64 offset{std::numeric_limits<u64>::max()};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user