fixed compilation warnings in YACReader.pro, at least using vc++ compiler

This commit is contained in:
Luis Ángel San Martín
2016-03-26 09:50:32 +01:00
parent e5a9fbbf3e
commit 20c01cca8c
7 changed files with 25 additions and 4 deletions

View File

@ -95,10 +95,10 @@ bool YACReaderLocalClient::requestComicInfo(quint64 libraryId, ComicDB & comic,
tries = 0;
int dataRead = 0;
localSocket->waitForReadyRead(1000);
while(data.length() < totalSize && tries < 20 )
while((unsigned int)data.length() < totalSize && tries < 20 )
{
data.append(localSocket->readAll());
if(data.length() < totalSize)
if((unsigned int)data.length() < totalSize)
localSocket->waitForReadyRead(100);
if(data.length() == dataRead)
tries++;