Fix compile warning

Should be pretty safe to cast the apparently unsigned return value of
"sizeof" to a regular integer.
This commit is contained in:
Thorbjørn Lindeijer
2009-02-06 14:21:38 +01:00
parent d668b9b1f1
commit 903457ee69

View File

@@ -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;