From: Nathan Moinvaziri Date: Sun, 2 Feb 2020 16:29:11 +0000 (-0800) Subject: Fixed compiler warning when using BITS macro. X-Git-Tag: 1.9.9-b1~368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=feff87a53e3cf5baab5e270d01d1331593cbada3;p=thirdparty%2Fzlib-ng.git Fixed compiler warning when using BITS macro. --- diff --git a/inflate_p.h b/inflate_p.h index fdec88e5..7225e96d 100644 --- a/inflate_p.h +++ b/inflate_p.h @@ -75,7 +75,7 @@ /* Return the low n bits of the bit accumulator (n < 16) */ #define BITS(n) \ - (hold & ((1U << (n)) - 1)) + (hold & ((1U << (unsigned)(n)) - 1)) /* Remove n bits from the bit accumulator */ #define DROPBITS(n) \