summaryrefslogtreecommitdiff
path: root/src/shared/qtsingleapplication
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-02-06 14:21:38 +0100
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-02-06 14:21:38 +0100
commit903457ee6954e40ff41aa01e19e8f6ccbb5c8384 (patch)
tree0f43f32bf904e346599d73b0cfe9d2409d6699fd /src/shared/qtsingleapplication
parentd668b9b1f15d7f0448d7a6cdc7a4e345b2436d22 (diff)
downloadqt-creator-903457ee6954e40ff41aa01e19e8f6ccbb5c8384.tar.gz
Fix compile warning
Should be pretty safe to cast the apparently unsigned return value of "sizeof" to a regular integer.
Diffstat (limited to 'src/shared/qtsingleapplication')
-rw-r--r--src/shared/qtsingleapplication/qtlocalpeer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/qtsingleapplication/qtlocalpeer.cpp b/src/shared/qtsingleapplication/qtlocalpeer.cpp
index 452d43545a..140e36f46b 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;