aboutsummaryrefslogtreecommitdiff
path: root/trees.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2022-03-28 10:50:16 -0700
committerMark Adler <madler@alumni.caltech.edu>2022-03-28 10:50:16 -0700
commit3df842426b53522e232da7aa06d5ef10eeb5ec4a (patch)
tree2d1f96cf917f50dae4f6d949062fbb7ee1c392b5 /trees.c
parenta4c17581d8fd9dc38d498430825d148fe7177881 (diff)
downloadzlib-3df842426b53522e232da7aa06d5ef10eeb5ec4a.tar.gz
zlib-3df842426b53522e232da7aa06d5ef10eeb5ec4a.tar.bz2
zlib-3df842426b53522e232da7aa06d5ef10eeb5ec4a.zip
Silence some warnings from Visual Studio C.
Diffstat (limited to 'trees.c')
-rw-r--r--trees.c6
1 files changed, 3 insertions, 3 deletions
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)
1017 unsigned dist; /* distance of matched string */ 1017 unsigned dist; /* distance of matched string */
1018 unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */ 1018 unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */
1019{ 1019{
1020 s->sym_buf[s->sym_next++] = dist; 1020 s->sym_buf[s->sym_next++] = (uch)dist;
1021 s->sym_buf[s->sym_next++] = dist >> 8; 1021 s->sym_buf[s->sym_next++] = (uch)(dist >> 8);
1022 s->sym_buf[s->sym_next++] = lc; 1022 s->sym_buf[s->sym_next++] = (uch)lc;
1023 if (dist == 0) { 1023 if (dist == 0) {
1024 /* lc is the unmatched char */ 1024 /* lc is the unmatched char */
1025 s->dyn_ltree[lc].Freq++; 1025 s->dyn_ltree[lc].Freq++;