Skip to content

Commit 0d8cda5

Browse files
Minizip: fix incompatible pointer type in zipAlreadyThere
1 parent da607da commit 0d8cda5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contrib/minizip/zip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ local char *block_central_name(block_t *block, set_t *set) {
463463
// the central directory is invalid, -2 if out of memory, or ZIP_PARAMERROR if
464464
// file is NULL. */
465465
extern int ZEXPORT zipAlreadyThere(zipFile file, char const *name) {
466-
zip64_internal *zip = file;
466+
zip64_internal *zip = (zip64_internal*)file;
467467
if (zip == NULL)
468468
return ZIP_PARAMERROR;
469469
if (zip->central_dir.first_block == NULL)

0 commit comments

Comments
 (0)