isl_ctx.h: make FL_ISSET return a boolean value
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 26 Feb 2009 11:14:21 +0000 (12:14 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 8 Mar 2009 18:27:06 +0000 (19:27 +0100)
include/isl_ctx.h.in

index 7f717ca..cef5472 100644 (file)
@@ -57,7 +57,7 @@ struct isl_ctx {
 #define ISL_FL_INIT(l, f)   (l) = (f)               /* Specific flags location. */
 #define ISL_FL_SET(l, f)    ((l) |= (f))
 #define ISL_FL_CLR(l, f)    ((l) &= ~(f))
-#define ISL_FL_ISSET(l, f)  ((l) & (f))
+#define ISL_FL_ISSET(l, f)  (!!((l) & (f)))
 
 #define ISL_F_INIT(p, f)    ISL_FL_INIT((p)->flags, f)  /* Structure element flags. */
 #define ISL_F_SET(p, f)     ISL_FL_SET((p)->flags, f)