zlib icon indicating copy to clipboard operation
zlib copied to clipboard

Remove double checks in preprocessing and runtime

Open irwir opened this issue 10 months ago • 2 comments

irwir avatar Feb 27 '25 19:02 irwir

Please provide a short description and rationale for the changes. Thanks.

madler avatar Feb 27 '25 19:02 madler

Conditions zi->ci.method == Z_DEFLATED in line 1421 was rechecked in 1424. Similarly, for zi->ci.method == Z_BZIP2ED. Fewer conditional compilation directives; overall the code gets shorter and clearer.

Reason for removed pointer operation is in the comment.

irwir avatar Feb 27 '25 20:02 irwir