From: Nathan Moinvaziri Date: Sat, 4 Jul 2020 03:38:36 +0000 (-0700) Subject: Fixed possible loss of data warning in h2b in infcover on Windows. X-Git-Tag: 1.9.9-b1~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc4c480c131f1b7f77b2be07f1c1c7ee3f1959a5;p=thirdparty%2Fzlib-ng.git Fixed possible loss of data warning in h2b in infcover on Windows. infcover.c(247,35): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data --- diff --git a/test/infcover.c b/test/infcover.c index 41f71508..6c96bb56 100644 --- a/test/infcover.c +++ b/test/infcover.c @@ -242,7 +242,7 @@ static void mem_done(PREFIX3(stream) *strm, char *prefix) { static unsigned char *h2b(const char *hex, unsigned *len) { unsigned char *in, *re; unsigned next, val; - unsigned inlen; + size_t inlen; inlen = (strlen(hex) + 1) >> 1; assert(inlen != 0); /* tell static analyzer we won't call malloc(0) */