diff --git a/src/tiffimage_int.hpp b/src/tiffimage_int.hpp index 680a1ddd..f3b3b6d3 100644 --- a/src/tiffimage_int.hpp +++ b/src/tiffimage_int.hpp @@ -153,8 +153,8 @@ namespace Exiv2 { //! Comparison operator to compare a TiffGroupStruct with a TiffGroupStruct::Key bool operator==(const Key& key) const { - return (Tag::all == extendedTag_ || key.e_ == extendedTag_) - && key.g_ == group_; + return key.g_ == group_ + && (Tag::all == extendedTag_ || key.e_ == extendedTag_); } //! Return the tag corresponding to the extended tag uint16_t tag() const { return static_cast(extendedTag_ & 0xffff); }