diff --git a/td/telegram/PhotoSizeType.h b/td/telegram/PhotoSizeType.h index bcf639dddd1b..cc51d505bc4c 100644 --- a/td/telegram/PhotoSizeType.h +++ b/td/telegram/PhotoSizeType.h @@ -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) {