diff options
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--; \ |