aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deflate.h4
-rw-r--r--trees.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/deflate.h b/deflate.h
index 17c2261..1a06cd5 100644
--- a/deflate.h
+++ b/deflate.h
@@ -329,8 +329,8 @@ void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf,
329# define _tr_tally_dist(s, distance, length, flush) \ 329# define _tr_tally_dist(s, distance, length, flush) \
330 { uch len = (uch)(length); \ 330 { uch len = (uch)(length); \
331 ush dist = (ush)(distance); \ 331 ush dist = (ush)(distance); \
332 s->sym_buf[s->sym_next++] = dist; \ 332 s->sym_buf[s->sym_next++] = (uch)dist; \
333 s->sym_buf[s->sym_next++] = dist >> 8; \ 333 s->sym_buf[s->sym_next++] = (uch)(dist >> 8); \
334 s->sym_buf[s->sym_next++] = len; \ 334 s->sym_buf[s->sym_next++] = len; \
335 dist--; \ 335 dist--; \
336 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \ 336 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
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++;