diff --git a/src/pentaxmn_int.cpp b/src/pentaxmn_int.cpp index f4cb3863..32d6f305 100644 --- a/src/pentaxmn_int.cpp +++ b/src/pentaxmn_int.cpp @@ -1036,7 +1036,7 @@ namespace Exiv2 { std::ostream& PentaxMakerNote::printDate(std::ostream& os, const Value& value, const ExifData*) { /* I choose same format as is used inside EXIF itself */ - os << ((value.toLong(0) << 8) + value.toLong(1)); + os << ((static_cast(value.toLong(0)) << 8) + value.toLong(1)); os << ":"; os << std::setw(2) << std::setfill('0') << value.toLong(2); os << ":";