Skip to content

Commit

Permalink
Merge pull request #280 from nyq/nyq-s_tdefl_num_probes-cpp
Browse files Browse the repository at this point in the history
Update miniz_tdef.c to enable compiling in forced-C++ mode
  • Loading branch information
uroni authored Sep 28, 2023
2 parents 93ded54 + b0af33a commit acfba6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions miniz_tdef.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ static mz_bool tdefl_compress_block(tdefl_compressor *d, mz_bool static_block)
return tdefl_compress_lz_codes(d);
}

static const mz_uint s_tdefl_num_probes[11];
static const mz_uint s_tdefl_num_probes[11] = { 0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500 };

static int tdefl_flush_block(tdefl_compressor *d, int flush)
{
Expand Down Expand Up @@ -1462,8 +1462,6 @@ size_t tdefl_compress_mem_to_mem(void *pOut_buf, size_t out_buf_len, const void
return out_buf.m_size;
}

static const mz_uint s_tdefl_num_probes[11] = { 0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500 };

/* level may actually range from [0,10] (10 is a "hidden" max level, where we want a bit more compression and it's fine if throughput to fall off a cliff on some files). */
mz_uint tdefl_create_comp_flags_from_zip_params(int level, int window_bits, int strategy)
{
Expand Down

0 comments on commit acfba6a

Please sign in to comment.