From fec59f7370a321b4086a4a2758848f62c7d9348d Mon Sep 17 00:00:00 2001 From: Aurélien Aptel Date: Fri, 27 Aug 2010 00:58:28 +0200 Subject: fixed potential bug in IS_SET(). --- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/st.c b/st.c index ebe896c..8dfd4a7 100644 --- a/st.c +++ b/st.c @@ -34,7 +34,7 @@ #define BETWEEN(x, a, b) ((a) <= (x) && (x) <= (b)) #define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x) #define ATTRCMP(a, b) ((a).mode != (b).mode || (a).fg != (b).fg || (a).bg != (b).bg) -#define IS_SET(flag) (term.mode & flag) +#define IS_SET(flag) (term.mode & (flag)) /* Attribute, Cursor, Character state, Terminal mode, Screen draw mode */ enum { ATTR_NULL=0 , ATTR_REVERSE=1 , ATTR_UNDERLINE=2, ATTR_BOLD=4, ATTR_GFX=8 }; -- cgit v1.2.3