From 3df842426b53522e232da7aa06d5ef10eeb5ec4a Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Mon, 28 Mar 2022 10:50:16 -0700 Subject: Silence some warnings from Visual Studio C. --- trees.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'trees.c') diff --git a/trees.c b/trees.c index f73fd99..8b438cc 100644 --- a/trees.c +++ b/trees.c @@ -1017,9 +1017,9 @@ int ZLIB_INTERNAL _tr_tally (s, dist, lc) unsigned dist; /* distance of matched string */ unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */ { - s->sym_buf[s->sym_next++] = dist; - s->sym_buf[s->sym_next++] = dist >> 8; - s->sym_buf[s->sym_next++] = lc; + s->sym_buf[s->sym_next++] = (uch)dist; + s->sym_buf[s->sym_next++] = (uch)(dist >> 8); + s->sym_buf[s->sym_next++] = (uch)lc; if (dist == 0) { /* lc is the unmatched char */ s->dyn_ltree[lc].Freq++; -- cgit v1.2.3-55-g6feb