File kfilemetadata-5.103.0-fix-building.patch of Package mingw64-kfilemetadata5
diff -ur a/src/extractors/exiv2extractor.cpp b/src/extractors/exiv2extractor.cpp
--- a/src/extractors/exiv2extractor.cpp 2023-02-05 10:21:26.000000000 +0100
+++ b/src/extractors/exiv2extractor.cpp 2024-07-04 10:18:08.957267721 +0200
@@ -75,7 +75,7 @@
QVariant toVariantLong(const Exiv2::Value& value)
{
if (value.typeId() == Exiv2::unsignedLong || value.typeId() == Exiv2::signedLong) {
- qlonglong val = value.toLong();
+ qlonglong val = value.toUint32();
return QVariant(val);
}
@@ -310,7 +310,7 @@
it = data.findKey(Exiv2::ExifKey("Exif.GPSInfo.GPSAltitudeRef"));
if (it != data.end() && it->count() > 0 &&
(it->value().typeId() == Exiv2::unsignedByte || it->value().typeId() == Exiv2::signedByte)) {
- auto altRef = it->value().toLong();
+ auto altRef = it->value().toUint32();
if (altRef) {
alt = -1.0 * ratio.first / ratio.second;
} else {