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/opengl/qopengldebug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/opengl/qopengldebug.cpp') diff --git a/src/opengl/qopengldebug.cpp b/src/opengl/qopengldebug.cpp index ef3b955f906..3df1f2f29a1 100644 --- a/src/opengl/qopengldebug.cpp +++ b/src/opengl/qopengldebug.cpp @@ -1540,7 +1540,7 @@ void QOpenGLDebugLogger::logMessage(const QOpenGLDebugMessage &debugMessage) if (rawMessage.length() > d->maxMessageLength) { qWarning("QOpenGLDebugLogger::logMessage(): message too long, truncating it\n" - " (%d bytes long, but the GL accepts up to %d bytes)", rawMessage.length(), d->maxMessageLength); + " (%d bytes long, but the GL accepts up to %d bytes)", int(rawMessage.length()), d->maxMessageLength); rawMessage.resize(d->maxMessageLength - 1); rawMessage.append('\0'); } @@ -1592,7 +1592,7 @@ void QOpenGLDebugLogger::pushGroup(const QString &name, GLuint id, QOpenGLDebugM rawName.append('\0'); if (rawName.length() > d->maxMessageLength) { qWarning("QOpenGLDebugLogger::pushGroup(): group name too long, truncating it\n" - " (%d bytes long, but the GL accepts up to %d bytes)", rawName.length(), d->maxMessageLength); + " (%d bytes long, but the GL accepts up to %d bytes)", int(rawName.length()), d->maxMessageLength); rawName.resize(d->maxMessageLength - 1); rawName.append('\0'); } -- cgit v1.2.3