summaryrefslogtreecommitdiff
path: root/inflate_p.h
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@solidstatenetworks.com>2020-02-02 08:29:11 -0800
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-02-07 18:42:03 +0100
commitfeff87a53e3cf5baab5e270d01d1331593cbada3 (patch)
tree5ea525c41fdfe46c1163047eddeec82ab26a2c2c /inflate_p.h
parentd06d965ff0fe143b54f162a7970285c88460f34f (diff)
Fixed compiler warning when using BITS macro.
Diffstat (limited to 'inflate_p.h')
-rw-r--r--inflate_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/inflate_p.h b/inflate_p.h
index fdec88e..7225e96 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) \