diff options
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)); |