summaryrefslogtreecommitdiff
path: root/deps/zlib/trees.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/zlib/trees.c')
-rw-r--r--deps/zlib/trees.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/zlib/trees.c b/deps/zlib/trees.c
index f73fd99c3..8b438cce4 100644
--- a/deps/zlib/trees.c
+++ b/deps/zlib/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++;