Skip to content

Commit fee6870

Browse files
committed
Fix flags check bug (unreachable now) in window_bits_from_flags
1 parent 2272770 commit fee6870

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

miniz_oxide/src/deflate/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2584,7 +2584,7 @@ pub const fn create_comp_flags_from_zip_params(level: i32, window_bits: i32, str
25842584

25852585
/// Check if the window is
25862586
const fn window_bits_from_flags(flags: u32) -> u8 {
2587-
if (flags & TDEFL_FORCE_ALL_RAW_BLOCKS & TDEFL_RLE_MATCHES) != 0
2587+
if (flags & (TDEFL_FORCE_ALL_RAW_BLOCKS | TDEFL_RLE_MATCHES)) != 0
25882588
|| (flags & MAX_PROBES_MASK) == 0
25892589
{
25902590
1

0 commit comments

Comments
 (0)