diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2016-11-20 11:36:15 -0800 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2019-03-27 13:00:25 +0100 |
| commit | eea02140087f06b3787f9c6a7ce59f9ff71a9902 (patch) | |
| tree | 1bea746bf24ba9267ed5cfd28b2d0754f6cad7df | |
| parent | cde1daff92c8a31b5c6cbd5362181f29f153e375 (diff) | |
| download | Project-Tick-eea02140087f06b3787f9c6a7ce59f9ff71a9902.tar.gz Project-Tick-eea02140087f06b3787f9c6a7ce59f9ff71a9902.zip | |
Increase verbosity required to warn about bit length overflow.
When debugging the Huffman coding would warn about resulting codes
greater than 15 bits in length. This is handled properly, and is
not uncommon. This increases the verbosity of the warning by one,
so that it is not displayed by default.
| -rw-r--r-- | trees.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -449,7 +449,7 @@ static void gen_bitlen(deflate_state *s, tree_desc *desc) { if (overflow == 0) return; - Trace((stderr, "\nbit length overflow\n")); + Tracev((stderr, "\nbit length overflow\n")); /* This happens for example on obj2 and pic of the Calgary corpus */ /* Find the first bit length which could increase: */ @@ -478,7 +478,7 @@ static void gen_bitlen(deflate_state *s, tree_desc *desc) { if (m > max_code) continue; if (tree[m].Len != bits) { - Trace((stderr, "code %d bits %d->%u\n", m, tree[m].Len, bits)); + Tracev((stderr, "code %d bits %d->%u\n", m, tree[m].Len, bits)); s->opt_len += (unsigned long)(bits * tree[m].Freq); s->opt_len -= (unsigned long)(tree[m].Len * tree[m].Freq); tree[m].Len = (uint16_t)bits; |
