mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
UI: Fix type comparison warning.
This commit is contained in:
parent
c77f5da9ea
commit
07b5470827
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ bool GameManager::ExtractFile(struct zip *z, int file_index, std::string outFile
|
|||
while (pos < size) {
|
||||
size_t readSize = std::min(blockSize, size - pos);
|
||||
ssize_t retval = zip_fread(zf, buffer, readSize);
|
||||
if (retval < readSize) {
|
||||
if (retval < 0 || (size_t)retval < readSize) {
|
||||
ERROR_LOG(HLE, "Failed to read %d bytes from zip (%d) - archive corrupt?", (int)readSize, (int)retval);
|
||||
delete[] buffer;
|
||||
fclose(f);
|
||||
|
|
Loading…
Add table
Reference in a new issue