Fix large-entry detection in minizip on 64-bit systems [Schiffer].

This commit is contained in:
Mark Adler
2012-01-16 13:16:39 -08:00
parent eb33abcc55
commit 5a5dd2c793
3 changed files with 7 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ ZPOS64_T call_ztell64 (const zlib_filefunc64_32_def* pfilefunc,voidpf filestream
else
{
uLong tell_uLong = (*(pfilefunc->ztell32_file))(pfilefunc->zfile_func64.opaque,filestream);
if ((tell_uLong) == ((uLong)-1))
if ((tell_uLong) == MAXU32)
return (ZPOS64_T)-1;
else
return tell_uLong;