aboutsummaryrefslogtreecommitdiff
path: root/trees.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:52 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:52 -0700
commit9c3a5830218c4e7fff23b8fc4386269db77a03a9 (patch)
tree913542049433ae44de55d22913f6bca921f2dc15 /trees.c
parent6b8233bfe00e79134cb1b84fc49d4f750a797f79 (diff)
downloadzlib-9c3a5830218c4e7fff23b8fc4386269db77a03a9.tar.gz
zlib-9c3a5830218c4e7fff23b8fc4386269db77a03a9.tar.bz2
zlib-9c3a5830218c4e7fff23b8fc4386269db77a03a9.zip
zlib 1.2.2.4v1.2.2.4
Diffstat (limited to 'trees.c')
-rw-r--r--trees.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/trees.c b/trees.c
index 48c651b..395e4e1 100644
--- a/trees.c
+++ b/trees.c
@@ -1,5 +1,5 @@
1/* trees.c -- output deflated data using Huffman coding 1/* trees.c -- output deflated data using Huffman coding
2 * Copyright (C) 1995-2004 Jean-loup Gailly 2 * Copyright (C) 1995-2005 Jean-loup Gailly
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
@@ -555,7 +555,7 @@ local void gen_bitlen(s, desc)
555 while (n != 0) { 555 while (n != 0) {
556 m = s->heap[--h]; 556 m = s->heap[--h];
557 if (m > max_code) continue; 557 if (m > max_code) continue;
558 if (tree[m].Len != (unsigned) bits) { 558 if ((unsigned) tree[m].Len != (unsigned) bits) {
559 Trace((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits)); 559 Trace((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits));
560 s->opt_len += ((long)bits - (long)tree[m].Len) 560 s->opt_len += ((long)bits - (long)tree[m].Len)
561 *(long)tree[m].Freq; 561 *(long)tree[m].Freq;