summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2021-04-20 14:43:02 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-04-21 07:33:55 +0000
commit71fdc7116ac43fc99aee414c0c58b462a8b5bc9e (patch)
tree10a5644e086bdd7f273bc35bb771363650f4d8d6
parente3ed2c0acf15cbeebd102fa77a86d03ee45cbb56 (diff)
Fix C4267 warning in qqmlirbuilder.cpp
Fixes: QTBUG-92966 Change-Id: I9acdb0d624a0950f9e28c6463530b27d282123e2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit e881ca02897f51175c382401d9713f6f77ede426) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/qml/compiler/qqmlirbuilder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qqmlirbuilder.cpp b/src/qml/compiler/qqmlirbuilder.cpp
index dd2a5fc970..10fc3f8407 100644
--- a/src/qml/compiler/qqmlirbuilder.cpp
+++ b/src/qml/compiler/qqmlirbuilder.cpp
@@ -1650,8 +1650,8 @@ void QmlUnitGenerator::generate(Document &output, const QV4::CompiledData::Depen
// No more new strings after this point, we're calculating offsets.
output.jsGenerator.stringTable.freeze();
- const uint importSize = sizeof(QV4::CompiledData::Import) * output.imports.count();
- const uint objectOffsetTableSize = output.objects.count() * sizeof(quint32);
+ const uint importSize = uint(sizeof(QV4::CompiledData::Import)) * output.imports.count();
+ const uint objectOffsetTableSize = output.objects.count() * uint(sizeof(quint32));
QHash<const Object*, quint32> objectOffsets;