diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-05-09 19:42:30 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-05-09 19:42:30 (GMT) |
commit | 502f4114390509fa4af8ec75e10cf627fde92da2 (patch) | |
tree | c4e9bccd2770ffec2dde793a64990435c7480023 /compat/zlib/trees.c | |
parent | 5c605017e38586813282b8e2030a1ffe51ec8e58 (diff) | |
parent | 9b2de05ffb74b4da66584d05e18404ddb8f7fb71 (diff) | |
download | tcl-502f4114390509fa4af8ec75e10cf627fde92da2.zip tcl-502f4114390509fa4af8ec75e10cf627fde92da2.tar.gz tcl-502f4114390509fa4af8ec75e10cf627fde92da2.tar.bz2 |
Merge 8.6
Diffstat (limited to 'compat/zlib/trees.c')
-rw-r--r-- | compat/zlib/trees.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/zlib/trees.c b/compat/zlib/trees.c index f73fd99..8b438cc 100644 --- a/compat/zlib/trees.c +++ b/compat/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++; |