Update miniz_tdef.c

Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
This commit is contained in:
Randy 2022-05-06 05:01:09 +02:00 committed by GitHub
parent cd1dc96d27
commit 7c459c8a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -629,7 +629,7 @@ static int tdefl_flush_block(tdefl_compressor *d, int flush)
mz_uint header, i, n = sizeof(s_tdefl_num_probes) / sizeof(mz_uint);
/* Determine compression level by reversing the process in tdefl_create_comp_flags_from_zip_params() */
for (i=0; i < n; i++)
for (i = 0; i < n; i++)
if (s_tdefl_num_probes[i] == (d->m_flags & 0xFFF)) break;
if (i < 2)