From a7598c1d8f6d3e226875052376abdd1ae3b331fe Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Tue, 7 Jun 2022 08:54:26 -0700 Subject: [PATCH] Fixed conversion warnings for wsize in slide_hash_c. slide_hash.c(50,44): warning C4244: 'function': conversion from 'unsigned int' to 'uint16_t', possible loss of data slide_hash.c(51,40): warning C4244: 'function': conversion from 'unsigned int' to 'uint16_t', possible loss of data --- slide_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slide_hash.c b/slide_hash.c index d25e710a..b9fbbdb6 100644 --- a/slide_hash.c +++ b/slide_hash.c @@ -45,7 +45,7 @@ static inline void slide_hash_c_chain(Pos *table, uint32_t entries, uint16_t wsi } Z_INTERNAL void slide_hash_c(deflate_state *s) { - unsigned int wsize = s->w_size; + uint16_t wsize = (uint16_t)s->w_size; slide_hash_c_chain(s->head, HASH_SIZE, wsize); slide_hash_c_chain(s->prev, wsize, wsize); -- 2.47.3