diff --git a/include/exiv2/types.hpp b/include/exiv2/types.hpp index 8bdbad2a..b33a90c7 100644 --- a/include/exiv2/types.hpp +++ b/include/exiv2/types.hpp @@ -262,9 +262,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