From: Jaroslav Kysela Date: Thu, 22 Feb 2018 15:18:25 +0000 (+0100) Subject: bitops: fix BIT_MASK() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee368a02125006c8d2bea0c0cdfed44edc131c05;p=thirdparty%2Ftvheadend.git bitops: fix BIT_MASK() --- diff --git a/src/bitops.h b/src/bitops.h index d1b669b4b..2a55f9076 100644 --- a/src/bitops.h +++ b/src/bitops.h @@ -29,7 +29,7 @@ typedef uint32_t bitops_ulong_t; #endif #define BIT_WORD(bit) ((bit) / BITS_PER_LONG) -#define BIT_MASK(bit) (1UL << ((bit) % BITS_PER_LONG)) +#define BIT_MASK(bit) (((bitops_ulong_t)1) << ((bit) % BITS_PER_LONG)) static inline void set_bit(int bit, void *addr) {