macros.h
changeset 3132 724ede39bda9
parent 2966 7f382cfeb93d
child 3326 b5ce3e805425
--- a/macros.h	Fri Mar 03 11:27:18 2006 +0000
+++ b/macros.h	Fri Mar 03 19:42:09 2006 +0000
@@ -57,7 +57,7 @@
 #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)))