mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
fixed compilation warnings in YACReader.pro, at least using vc++ compiler
This commit is contained in:
@ -876,7 +876,7 @@ void Render::nextDoublePage()
|
||||
update();
|
||||
emit pageChanged(currentIndex);
|
||||
}
|
||||
else if (hasLoadedComic() && (currentIndex >= numPages()-2))
|
||||
else if (hasLoadedComic() && ((unsigned int)currentIndex >= numPages()-2))
|
||||
{
|
||||
emit isLast();
|
||||
}
|
||||
|
@ -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++;
|
||||
|
Reference in New Issue
Block a user