aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljslogger_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlcompiler/qqmljslogger_p.h')
-rw-r--r--src/qmlcompiler/qqmljslogger_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljslogger_p.h b/src/qmlcompiler/qqmljslogger_p.h
index 5ccbe91045..2d63a860c3 100644
--- a/src/qmlcompiler/qqmljslogger_p.h
+++ b/src/qmlcompiler/qqmljslogger_p.h
@@ -63,7 +63,7 @@ public:
\param location: The location where an error occurred.
*/
IssueLocationWithContext(QStringView code, const QQmlJS::SourceLocation &location) {
- int before = qMax(0,code.lastIndexOf(QLatin1Char('\n'), location.offset));
+ quint32 before = qMax(0, code.lastIndexOf(QLatin1Char('\n'), location.offset));
if (before != 0) before++;