Skip to content
Snippets Groups Projects
Commit 903457ee authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fix compile warning

Should be pretty safe to cast the apparently unsigned return value of
"sizeof" to a regular integer.
parent d668b9b1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment