]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed compiler warning when using BITS macro.
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Sun, 2 Feb 2020 16:29:11 +0000 (08:29 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 7 Feb 2020 17:42:03 +0000 (18:42 +0100)
inflate_p.h

index fdec88e5927d88db133c4f916d243e4bea20fde1..7225e96de7a7b13c2e0fc836285174cb4cbfd696 100644 (file)
@@ -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) \