Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unzLocateFile 3rd parameter #746

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Conversation

tuliom
Copy link
Contributor

@tuliom tuliom commented Dec 8, 2023

Replace the previous type with one that is compatible with an int in order to be identical to the interface used in madler's zlib.

Fixes #745.

@tuliom
Copy link
Contributor Author

tuliom commented Dec 8, 2023

It's important to mention this breaks binary compatibility with binaries built against a previous version of minizip-ng when MZ_COMPAT=ON. I'm afraid this price needs to be paid in order to be compatible with madler's minizip again.

@ljavorsk
Copy link

@nmoinvaz Could you please review this PR?

Thank you

mz_compat.c Outdated Show resolved Hide resolved
mz_compat.c Outdated Show resolved Hide resolved
mz_compat.c Outdated Show resolved Hide resolved
mz_compat.c Outdated Show resolved Hide resolved
mz_compat.c Outdated Show resolved Hide resolved
mz_compat.c Outdated Show resolved Hide resolved
mz_compat.c Outdated Show resolved Hide resolved
Replace the previous type with one that is compatible with an int in
order to be identical to the interface used in madler's zlib.

Fixes zlib-ng#745.
@nmoinvaz nmoinvaz merged commit fbd8443 into zlib-ng:develop Dec 11, 2023
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Backwards compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants