Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10117 from AdmiralCurtiss/disc-content-comparators
DiscIO/DirectoryBlob: Fix swapped DiscContent comparison operators.
  • Loading branch information
lioncash committed Sep 21, 2021
2 parents 22f7c07 + 6684e26 commit cc84799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/DiscIO/DirectoryBlob.h
Expand Up @@ -58,8 +58,8 @@ class DiscContent
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;
Expand Down

0 comments on commit cc84799

Please sign in to comment.