From 4ca984fb447ac57120c394cf2fbba23837ed31c2 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:03:14 -0700 Subject: zlib 0.8 --- trees.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trees.c') diff --git a/trees.c b/trees.c index 62411a7..9234add 100644 --- a/trees.c +++ b/trees.c @@ -29,7 +29,7 @@ * Addison-Wesley, 1983. ISBN 0-201-06672-6. */ -/* $Id: trees.c,v 1.2 1995/04/10 16:21:44 jloup Exp $ */ +/* $Id: trees.c,v 1.3 1995/04/29 13:49:46 jloup Exp $ */ #include "deflate.h" @@ -944,7 +944,7 @@ local void set_data_type(s) while (n < 7) bin_freq += s->dyn_ltree[n++].Freq; while (n < 128) ascii_freq += s->dyn_ltree[n++].Freq; while (n < LITERALS) bin_freq += s->dyn_ltree[n++].Freq; - s->data_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII; + s->data_type = (Byte)(bin_freq > (ascii_freq >> 2) ? BINARY : ASCII); } /* =========================================================================== -- cgit v1.2.3-55-g6feb