From 0713606469ab9f47fb74f9b3984ff5fdd7095eb2 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 17 Aug 2007 22:43:00 +0000 Subject: redefine BITARRAY_MASK as a function of BITARRAY_SHIFT svn:r11160 --- src/common/container.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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<