diff options
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ static inline int64 BIGMULS(int32 a, int32 b) { #define IS_INSIDE_1D(x, base, size) ( (uint)((x) - (base)) < ((uint)(size)) ) -#define HASBIT(x,y) ((x) & (1 << (y))) +#define HASBIT(x,y) (((x) & (1 << (y))) != 0) #define SETBIT(x,y) ((x) |= (1 << (y))) #define CLRBIT(x,y) ((x) &= ~(1 << (y))) #define TOGGLEBIT(x,y) ((x) ^= (1 << (y))) |