From 392f3026839b10bcc21163b84b88107fa1463fd8 Mon Sep 17 00:00:00 2001 From: nathancorvussolis Date: Wed, 30 Mar 2022 00:29:49 +0900 Subject: [PATCH] Avoid warning C4244. --- libz/deflate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libz/deflate.h b/libz/deflate.h index 17c22611..008dbcdf 100644 --- a/libz/deflate.h +++ b/libz/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++] = (uchf)(dist); \ + s->sym_buf[s->sym_next++] = (uchf)(dist >> 8); \ s->sym_buf[s->sym_next++] = len; \ dist--; \ s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \