Skip to content

Commit

Permalink
Fix incorrect cast in minizip's ioapi.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Adler committed Oct 7, 2022
1 parent 2d283ad commit 9b291c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/minizip/ioapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static long ZCALLBACK fseek64_file_func (voidpf opaque, voidpf stream, ZPOS64_T
}
ret = 0;

if(FSEEKO_FUNC((FILE *)stream, (long)offset, fseek_origin) != 0)
if(FSEEKO_FUNC((FILE *)stream, (z_off_t)offset, fseek_origin) != 0)
ret = -1;

return ret;
Expand Down

0 comments on commit 9b291c9

Please sign in to comment.