Skip to content

Commit

Permalink
Merge pull request #9 from guillempages/patch-1
Browse files Browse the repository at this point in the history
Allow compilation on ESP-IDF framework
  • Loading branch information
kikuchan authored Apr 19, 2024
2 parents 73631e9 + bc7d49d commit 81eb04d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/miniz.c
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,10 @@ tinfl_status tinfl_decompress(tinfl_decompressor *r, const mz_uint8 *pIn_buf_nex
{
mz_uint8 *p = r->m_tables[0].m_code_size; mz_uint i;
r->m_table_sizes[0] = 288; r->m_table_sizes[1] = 32; TINFL_MEMSET(r->m_tables[1].m_code_size, 5, 32);
for ( i = 0; i <= 143; ++i) *p++ = 8; for ( ; i <= 255; ++i) *p++ = 9; for ( ; i <= 279; ++i) *p++ = 7; for ( ; i <= 287; ++i) *p++ = 8;
for ( i = 0; i <= 143; ++i) *p++ = 8;
for ( ; i <= 255; ++i) *p++ = 9;
for ( ; i <= 279; ++i) *p++ = 7;
for ( ; i <= 287; ++i) *p++ = 8;
}
else
{
Expand Down

0 comments on commit 81eb04d

Please sign in to comment.