diff --git a/src/common/container.h b/src/common/container.h index 2953b0d68f..668befdd6e 100644 --- a/src/common/container.h +++ b/src/common/container.h @@ -268,13 +268,12 @@ void* strmap_remove_lc(strmap_t *map, const char *key); #if SIZEOF_INT == 4 #define BITARRAY_SHIFT 5 -#define BITARRAY_MASK 31 #elif SIZEOF_INT == 8 #define BITARRAY_SHIFT 6 -#define BITARRAY_MASK 63 #else #error "int is neither 4 nor 8 bytes. I can't deal with that." #endif +#define BITARRAY_MASK ((1u<