Skip to content

Commit

Permalink
Fix PhotoSize type comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Oct 7, 2024
1 parent 5f3c663 commit fe6f2f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions td/telegram/PhotoSizeType.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ inline bool operator==(const PhotoSizeType &lhs, const PhotoSizeType &rhs) {
}

inline bool operator!=(const PhotoSizeType &lhs, char c) {
return lhs.type == c;
return !(lhs == c);
}

inline bool operator!=(const PhotoSizeType &lhs, int32 type) {
return lhs.type == type;
return !(lhs == type);
}

inline bool operator!=(const PhotoSizeType &lhs, const PhotoSizeType &rhs) {
return lhs.type != rhs.type;
return !(lhs == rhs);
}

inline StringBuilder &operator<<(StringBuilder &string_builder, const PhotoSizeType &photo_size_type) {
Expand Down

0 comments on commit fe6f2f9

Please sign in to comment.