From 21c66cd5ac8876f48a19882074933c6275eaa022 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sun, 20 Nov 2016 11:36:15 -0800 Subject: [PATCH] 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. --- trees.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trees.c b/trees.c index 37e35d3..685a388 100644 --- a/trees.c +++ b/trees.c @@ -525,7 +525,7 @@ local void gen_bitlen(s, 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: */ @@ -552,7 +552,7 @@ local void gen_bitlen(s, desc) m = s->heap[--h]; if (m > max_code) continue; if ((unsigned) tree[m].Len != (unsigned) bits) { - Trace((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits)); + Tracev((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits)); s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq; tree[m].Len = (ush)bits; }