fixed warnings

This commit is contained in:
Luis Ángel San Martín
2015-12-17 21:50:36 +01:00
parent 45fcaa8b2f
commit 9be0617626
2 changed files with 9 additions and 9 deletions

View File

@ -127,10 +127,10 @@ void YACReaderClientConnectionWorker::run()
tries = 0;
QByteArray data;
int dataRead = 0;
while(data.size() < totalSize && tries < 200)
while((quint32)data.size() < totalSize && tries < 200)
{
data.append(clientConnection->readAll());
if(data.length() < totalSize)
if((quint32)data.length() < totalSize)
clientConnection->waitForReadyRead(100);
if(dataRead == data.length()) //no bytes were read
tries++;