summaryrefslogtreecommitdiff
path: root/trees.c
diff options
context:
space:
mode:
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 62411a7..9234add 100644
--- a/trees.c
+++ b/trees.c
@@ -29,7 +29,7 @@
29 * Addison-Wesley, 1983. ISBN 0-201-06672-6. 29 * Addison-Wesley, 1983. ISBN 0-201-06672-6.
30 */ 30 */
31 31
32/* $Id: trees.c,v 1.2 1995/04/10 16:21:44 jloup Exp $ */ 32/* $Id: trees.c,v 1.3 1995/04/29 13:49:46 jloup Exp $ */
33 33
34#include "deflate.h" 34#include "deflate.h"
35 35
@@ -944,7 +944,7 @@ local void set_data_type(s)
944 while (n < 7) bin_freq += s->dyn_ltree[n++].Freq; 944 while (n < 7) bin_freq += s->dyn_ltree[n++].Freq;
945 while (n < 128) ascii_freq += s->dyn_ltree[n++].Freq; 945 while (n < 128) ascii_freq += s->dyn_ltree[n++].Freq;
946 while (n < LITERALS) bin_freq += s->dyn_ltree[n++].Freq; 946 while (n < LITERALS) bin_freq += s->dyn_ltree[n++].Freq;
947 s->data_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII; 947 s->data_type = (Byte)(bin_freq > (ascii_freq >> 2) ? BINARY : ASCII);
948} 948}
949 949
950/* =========================================================================== 950/* ===========================================================================