From 50661a9558ca3fe93bf569cc572b0fb2def5589d Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 9 Jul 2020 13:30:03 +0200 Subject: Change QByteArray to handle large arrays Use qsizetype throughout. Change-Id: I787af7fcfa17e1be87decb64c41c609cc24be117 Reviewed-by: Qt CI Bot Reviewed-by: Lars Knoll Reviewed-by: Oliver Wolff Reviewed-by: Thiago Macieira --- src/tools/moc/generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/moc/generator.cpp') diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp index cc43ca4490..c36e01a79a 100644 --- a/src/tools/moc/generator.cpp +++ b/src/tools/moc/generator.cpp @@ -279,7 +279,7 @@ void Generator::generateCode() int idx = 0; for (int i = 0; i < strings.size(); ++i) { const QByteArray &str = strings.at(i); - fprintf(out, "QT_MOC_LITERAL(%d, %d)", idx, str.length()); + fprintf(out, "QT_MOC_LITERAL(%d, %d)", idx, int(str.length())); if (i != strings.size() - 1) fputc(',', out); const QByteArray comment = str.length() > 32 ? str.left(29) + "..." : str; -- cgit v1.2.3