Fixed compiler warning when using BITS macro.

This commit is contained in:
Nathan Moinvaziri 2020-02-02 08:29:11 -08:00 committed by Hans Kristian Rosbach
parent d06d965ff0
commit feff87a53e

View 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) \