mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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;
|
int dataAvailable = 0;
|
||||||
QByteArray packageSize;
|
QByteArray packageSize;
|
||||||
clientConnection->waitForReadyRead(1000);
|
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()));
|
packageSize.append(clientConnection->read(sizeof(quint32) - packageSize.size()));
|
||||||
clientConnection->waitForReadyRead(100);
|
clientConnection->waitForReadyRead(100);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user