Skip to content

Commit

Permalink
Update miniz_tdef.c to enable compiling in forced-C++ mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-- committed Dec 4, 2023
1 parent 82f24c4 commit 2dc55b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/miniz.h
Original file line number Diff line number Diff line change
Expand Up @@ -3110,7 +3110,8 @@ 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) {
mz_uint saved_bit_buf, saved_bits_in;
Expand Down Expand Up @@ -3992,9 +3993,6 @@ size_t tdefl_compress_mem_to_mem(void *pOut_buf, size_t out_buf_len,
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). */
Expand Down

0 comments on commit 2dc55b0

Please sign in to comment.