From: Nathan Moinvaziri Date: Tue, 12 May 2020 13:27:03 +0000 (-0400) Subject: Fixed casting warning from bi_reverse in maketrees. X-Git-Tag: 1.9.9-b1~270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2447b5ead8d4424e0bd002c187f5b48febda511d;p=thirdparty%2Fzlib-ng.git Fixed casting warning from bi_reverse in maketrees. maketrees.c(93,58): warning C4244: '=': conversion from 'unsigned int' to 'uint16_ t', possible loss of data --- diff --git a/tools/maketrees.c b/tools/maketrees.c index cb6e146f..150e0266 100644 --- a/tools/maketrees.c +++ b/tools/maketrees.c @@ -90,7 +90,7 @@ static void tr_static_init(void) { /* The static distance tree is trivial: */ for (n = 0; n < D_CODES; n++) { static_dtree[n].Len = 5; - static_dtree[n].Code = bi_reverse((unsigned)n, 5); + static_dtree[n].Code = (uint16_t)bi_reverse((unsigned)n, 5); } }