diff --git a/src/corelib/time/qtimezonelocale.cpp b/src/corelib/time/qtimezonelocale.cpp index c27050648f6..a6f91ce0e57 100644 --- a/src/corelib/time/qtimezonelocale.cpp +++ b/src/corelib/time/qtimezonelocale.cpp @@ -833,7 +833,7 @@ QTimeZonePrivate::findLongNamePrefix(QStringView text, const QLocale &locale, if (range.size > best.nameLength) { QStringView name = range.viewData(longMetaZoneNameTable); if (text.startsWith(name)) { - best = { range.size, type, invalidIanaId, row.metaIdIndex }; + best = { static_cast(range.size), type, invalidIanaId, row.metaIdIndex }; if (best.nameLength >= text.size()) break; } @@ -853,7 +853,7 @@ QTimeZonePrivate::findLongNamePrefix(QStringView text, const QLocale &locale, bool gotZone = row.ianaIdIndex == best.ianaIdIndex || QTimeZone::isTimeZoneIdAvailable(row.ianaId().toByteArray()); if (text.startsWith(name) && gotZone) - best = { range.size, type, row.ianaIdIndex }; + best = { static_cast(range.size), type, row.ianaIdIndex }; } } }