diff --git a/src/utils.h b/src/utils.h index 0e49fb7a..10233276 100644 --- a/src/utils.h +++ b/src/utils.h @@ -15,7 +15,7 @@ } while (0) #endif -#define BIT(x) (1L << (x)) +#define BIT(x) (1UL << (x)) #define MASK(x) (BIT(x) - 1) #define GENMASK(msb, lsb) ((BIT((msb + 1) - (lsb)) - 1) << (lsb)) #define _FIELD_LSB(field) ((field) & ~(field - 1))