From 7096424f23df1b1813237fb5f8bc8f34cfcedd0c Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Tue, 11 Oct 2016 22:15:50 -0700 Subject: Clean up type conversions. --- deflate.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'deflate.h') diff --git a/deflate.h b/deflate.h index f18c616..fdc0a12 100644 --- a/deflate.h +++ b/deflate.h @@ -275,7 +275,7 @@ typedef struct internal_state { /* Output a byte on the stream. * IN assertion: there is enough room in pending_buf. */ -#define put_byte(s, c) {s->pending_buf[s->pending++] = (c);} +#define put_byte(s, c) {s->pending_buf[s->pending++] = (Bytef)(c);} #define MIN_LOOKAHEAD (MAX_MATCH+MIN_MATCH+1) @@ -328,8 +328,8 @@ void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, flush = (s->last_lit == s->lit_bufsize-1); \ } # define _tr_tally_dist(s, distance, length, flush) \ - { uch len = (length); \ - ush dist = (distance); \ + { uch len = (uch)(length); \ + ush dist = (ush)(distance); \ s->d_buf[s->last_lit] = dist; \ s->l_buf[s->last_lit++] = len; \ dist--; \ -- cgit v1.2.3-55-g6feb