From 3df842426b53522e232da7aa06d5ef10eeb5ec4a Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Mon, 28 Mar 2022 10:50:16 -0700 Subject: Silence some warnings from Visual Studio C. --- deflate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deflate.h') 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, # define _tr_tally_dist(s, distance, length, flush) \ { uch len = (uch)(length); \ ush dist = (ush)(distance); \ - s->sym_buf[s->sym_next++] = dist; \ - s->sym_buf[s->sym_next++] = dist >> 8; \ + s->sym_buf[s->sym_next++] = (uch)dist; \ + s->sym_buf[s->sym_next++] = (uch)(dist >> 8); \ s->sym_buf[s->sym_next++] = len; \ dist--; \ s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \ -- cgit v1.2.3-55-g6feb