Merge pull request #10117 from AdmiralCurtiss/disc-content-comparators

DiscIO/DirectoryBlob: Fix swapped DiscContent comparison operators.
This commit is contained in:
Mai M 2021-09-21 02:24:42 -04:00 committed by GitHub
commit cc84799c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ public:
bool operator!=(const DiscContent& other) const { return !(*this == other); }
bool operator<(const DiscContent& other) const { return GetEndOffset() < other.GetEndOffset(); }
bool operator>(const DiscContent& other) const { return other < *this; }
bool operator<=(const DiscContent& other) const { return !(*this < other); }
bool operator>=(const DiscContent& other) const { return !(*this > other); }
bool operator<=(const DiscContent& other) const { return !(*this > other); }
bool operator>=(const DiscContent& other) const { return !(*this < other); }
private:
u64 m_offset;