Merge pull request #263 from nekonomicon/match_dist

Fix variable declaration.
This commit is contained in:
Martin Raiber 2022-11-06 13:42:00 +01:00 committed by GitHub
commit 83341a5605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -476,7 +476,7 @@ static mz_bool tdefl_compress_lz_codes(tdefl_compressor *d)
{
mz_uint s0, s1, n0, n1, sym, num_extra_bits;
mz_uint match_len = pLZ_codes[0];
match_dist = (pLZ_codes[1] | (pLZ_codes[2] << 8));
mz_uint match_dist = (pLZ_codes[1] | (pLZ_codes[2] << 8));
pLZ_codes += 3;
MZ_ASSERT(d->m_huff_code_sizes[0][s_tdefl_len_sym[match_len]]);