From: Sven Verdoolaege Date: Thu, 26 Feb 2009 11:14:21 +0000 (+0100) Subject: isl_ctx.h: make FL_ISSET return a boolean value X-Git-Tag: isl-0.01~268 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3cf31c19fcc49c9ad818f2ad0b0546608bdc5a35;p=platform%2Fupstream%2Fisl.git isl_ctx.h: make FL_ISSET return a boolean value --- diff --git a/include/isl_ctx.h.in b/include/isl_ctx.h.in index 7f717ca..cef5472 100644 --- a/include/isl_ctx.h.in +++ b/include/isl_ctx.h.in @@ -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)