diff --git a/include/exiv2/types.hpp b/include/exiv2/types.hpp index 7d23bd17e5..284c1780ea 100644 --- a/include/exiv2/types.hpp +++ b/include/exiv2/types.hpp @@ -281,9 +281,8 @@ namespace Exiv2 { { if (byteOrder == littleEndian) { return static_cast(buf.at(1)) << 8 | static_cast(buf.at(0)); - } else { - return static_cast(buf.at(0)) << 8 | static_cast(buf.at(1)); } + return static_cast(buf.at(0)) << 8 | static_cast(buf.at(1)); } //! Read a 4 byte unsigned long value from the data buffer