From 903457ee6954e40ff41aa01e19e8f6ccbb5c8384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= <thorbjorn.lindeijer@nokia.com> Date: Fri, 6 Feb 2009 14:21:38 +0100 Subject: [PATCH] Fix compile warning Should be pretty safe to cast the apparently unsigned return value of "sizeof" to a regular integer. --- src/shared/qtsingleapplication/qtlocalpeer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/qtsingleapplication/qtlocalpeer.cpp b/src/shared/qtsingleapplication/qtlocalpeer.cpp index 452d43545a3..140e36f46b0 100644 --- a/src/shared/qtsingleapplication/qtlocalpeer.cpp +++ b/src/shared/qtsingleapplication/qtlocalpeer.cpp @@ -143,7 +143,7 @@ void QtLocalPeer::receiveConnection() return; // Why doesn't Qt have a blocking stream that takes care of this shait??? - while (socket->bytesAvailable() < sizeof(quint32)) + while (socket->bytesAvailable() < static_cast<int>(sizeof(quint32))) socket->waitForReadyRead(); QDataStream ds(socket); QByteArray uMsg; -- GitLab