mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Library: typecast in comparison of int and long u int
This commit is contained in:
parent
5927b1be45
commit
6f9d03847a
@ -104,7 +104,7 @@ void YACReaderClientConnectionWorker::run()
|
||||
int dataAvailable = 0;
|
||||
QByteArray packageSize;
|
||||
clientConnection->waitForReadyRead(1000);
|
||||
while(packageSize.size() < sizeof(quint32) && tries < 20)
|
||||
while(((long unsigned int)packageSize.size() < sizeof(quint32)) && (tries < 20))
|
||||
{
|
||||
packageSize.append(clientConnection->read(sizeof(quint32) - packageSize.size()));
|
||||
clientConnection->waitForReadyRead(100);
|
||||
|
Loading…
Reference in New Issue
Block a user