diff options
Diffstat (limited to 'trees.c')
-rw-r--r-- | trees.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | /* =========================================================================== |