diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2016-10-11 22:15:50 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2016-10-11 22:15:50 -0700 |
commit | 7096424f23df1b1813237fb5f8bc8f34cfcedd0c (patch) | |
tree | c41e8ef447e7e6764be5f3ba822fdc0c8da049f1 /deflate.h | |
parent | 2edb94a3025d288dc251bc6cbb2c02e60fbd7438 (diff) | |
download | zlib-7096424f23df1b1813237fb5f8bc8f34cfcedd0c.tar.gz zlib-7096424f23df1b1813237fb5f8bc8f34cfcedd0c.tar.bz2 zlib-7096424f23df1b1813237fb5f8bc8f34cfcedd0c.zip |
Clean up type conversions.
Diffstat (limited to 'deflate.h')
-rw-r--r-- | deflate.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -275,7 +275,7 @@ typedef struct internal_state { | |||
275 | /* Output a byte on the stream. | 275 | /* Output a byte on the stream. |
276 | * IN assertion: there is enough room in pending_buf. | 276 | * IN assertion: there is enough room in pending_buf. |
277 | */ | 277 | */ |
278 | #define put_byte(s, c) {s->pending_buf[s->pending++] = (c);} | 278 | #define put_byte(s, c) {s->pending_buf[s->pending++] = (Bytef)(c);} |
279 | 279 | ||
280 | 280 | ||
281 | #define MIN_LOOKAHEAD (MAX_MATCH+MIN_MATCH+1) | 281 | #define MIN_LOOKAHEAD (MAX_MATCH+MIN_MATCH+1) |
@@ -328,8 +328,8 @@ void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, | |||
328 | flush = (s->last_lit == s->lit_bufsize-1); \ | 328 | flush = (s->last_lit == s->lit_bufsize-1); \ |
329 | } | 329 | } |
330 | # define _tr_tally_dist(s, distance, length, flush) \ | 330 | # define _tr_tally_dist(s, distance, length, flush) \ |
331 | { uch len = (length); \ | 331 | { uch len = (uch)(length); \ |
332 | ush dist = (distance); \ | 332 | ush dist = (ush)(distance); \ |
333 | s->d_buf[s->last_lit] = dist; \ | 333 | s->d_buf[s->last_lit] = dist; \ |
334 | s->l_buf[s->last_lit++] = len; \ | 334 | s->l_buf[s->last_lit++] = len; \ |
335 | dist--; \ | 335 | dist--; \ |