diff options
author | kientzle <kientzle@FreeBSD.org> | 2005-04-24 17:11:32 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2005-04-24 17:11:32 +0000 |
commit | dcdd7970c32e380f850172d84335e45a41b37de8 (patch) | |
tree | c8863f4aa466b3a3ae0c692932613e378ffcbdd5 /lib/libz/trees.c | |
parent | 3178c167b530f4b9957d9cc1e8972feb3f876690 (diff) | |
download | FreeBSD-src-dcdd7970c32e380f850172d84335e45a41b37de8.zip FreeBSD-src-dcdd7970c32e380f850172d84335e45a41b37de8.tar.gz |
ZLib 1.2.2
Diffstat (limited to 'lib/libz/trees.c')
-rw-r--r-- | lib/libz/trees.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libz/trees.c b/lib/libz/trees.c index bb09554..52c820f 100644 --- a/lib/libz/trees.c +++ b/lib/libz/trees.c @@ -931,7 +931,7 @@ void _tr_flush_block(s, buf, stored_len, eof) if (s->level > 0) { /* Check if the file is ascii or binary */ - if (s->data_type == Z_UNKNOWN) set_data_type(s); + if (s->strm->data_type == Z_UNKNOWN) set_data_type(s); /* Construct the literal and distance trees */ build_tree(s, (tree_desc *)(&(s->l_desc))); @@ -1131,7 +1131,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 = (Byte)(bin_freq > (ascii_freq >> 2) ? Z_BINARY : Z_ASCII); + s->strm->data_type = bin_freq > (ascii_freq >> 2) ? Z_BINARY : Z_ASCII; } /* =========================================================================== |