mirror of https://github.com/PCSX2/pcsx2.git
gzip-iso: fix compiler warning/error
This commit is contained in:
parent
49505ab93f
commit
0f26be85b5
|
@ -353,6 +353,7 @@ local int extract(FILE *in, struct access *index, PX_off_t offset,
|
||||||
unsigned char input[CHUNK];
|
unsigned char input[CHUNK];
|
||||||
unsigned char discard[WINSIZE];
|
unsigned char discard[WINSIZE];
|
||||||
PX_off_t orig_offset = offset;
|
PX_off_t orig_offset = offset;
|
||||||
|
int isEnd = 0;
|
||||||
|
|
||||||
/* proceed only if something reasonable to do */
|
/* proceed only if something reasonable to do */
|
||||||
if (len < 0)
|
if (len < 0)
|
||||||
|
@ -456,7 +457,7 @@ local int extract(FILE *in, struct access *index, PX_off_t offset,
|
||||||
/* do until offset reached and requested data read, or stream ends */
|
/* do until offset reached and requested data read, or stream ends */
|
||||||
} while (skip);
|
} while (skip);
|
||||||
|
|
||||||
int isEnd = ret == Z_STREAM_END;
|
isEnd = ret == Z_STREAM_END;
|
||||||
/* compute number of uncompressed bytes read after offset */
|
/* compute number of uncompressed bytes read after offset */
|
||||||
ret = skip ? 0 : len - strm.avail_out;
|
ret = skip ? 0 : len - strm.avail_out;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue