diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-10-01 16:57:56 +0300 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-10-04 16:53:33 +0300 |
commit | 7185a63b3c0bcc797d683c5070a799b69ade019b (patch) | |
tree | fae9ef4de05effe7971c0905074245d17ed78327 /src/qmlcompiler/qqmljscompiler.cpp | |
parent | 8fc3c036debf8e230200e1c7d2a8e65df140ca76 (diff) | |
download | qtdeclarative-7185a63b3c0bcc797d683c5070a799b69ade019b.tar.gz |
Fix warnings when which are treated as errors with -developer-build
Pick-to: 6.2
Task-number: QTBUG-91163
Change-Id: I7fdac1ff11b4e1c5a6b0caa6cbeae67ddc3effc4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljscompiler.cpp')
-rw-r--r-- | src/qmlcompiler/qqmljscompiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmlcompiler/qqmljscompiler.cpp b/src/qmlcompiler/qqmljscompiler.cpp index 9068fcd6b0..e9ccce9662 100644 --- a/src/qmlcompiler/qqmljscompiler.cpp +++ b/src/qmlcompiler/qqmljscompiler.cpp @@ -301,7 +301,7 @@ bool qCompileQmlFile(QmlIR::Document &irDocument, const QString &inputFileName, break; } - Q_ASSERT(functionsToCompile.length() > binding->value.compiledScriptIndex); + Q_ASSERT(quint32(functionsToCompile.length()) > binding->value.compiledScriptIndex); auto *node = functionsToCompile[binding->value.compiledScriptIndex].parentNode; Q_ASSERT(node); Q_ASSERT(module->contextMap.contains(node)); @@ -312,7 +312,7 @@ bool qCompileQmlFile(QmlIR::Document &irDocument, const QString &inputFileName, << irDocument.stringAt(binding->propertyNameIndex); result = aotCompiler->compileBinding(context, *binding); } else if (const auto *function = bindingOrFunction.function()) { - Q_ASSERT(functionsToCompile.length() > function->index); + Q_ASSERT(quint32(functionsToCompile.length()) > function->index); auto *node = functionsToCompile[function->index].node; Q_ASSERT(node); Q_ASSERT(module->contextMap.contains(node)); |