fixed potential bug in IS_SET(). - st - Personal fork of st
 (HTM) git clone git://git.drkhsh.at/st.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit a1018e0e9e52f29fe220a6af85a237a1a02a732c
 (DIR) parent fbb66da9a9ef3c12c1e8dee7433d003b85d70e9c
 (HTM) Author: Aurélien Aptel <aurelien.aptel@gmail.com>
       Date:   Fri, 27 Aug 2010 00:58:28 +0200
       
       fixed potential bug in IS_SET().
       
       Diffstat:
         M st.c                                |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git 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 };