From 9b291c9f013f99ad494ffecf4295cb2f594a18e3 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Thu, 6 Oct 2022 15:40:56 -0700 Subject: [PATCH] Fix incorrect cast in minizip's ioapi.c. --- contrib/minizip/ioapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/minizip/ioapi.c b/contrib/minizip/ioapi.c index baa6776..814a6fd 100644 --- a/contrib/minizip/ioapi.c +++ b/contrib/minizip/ioapi.c @@ -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;