diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-08-27 00:58:28 +0200 |
---|---|---|
committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-08-27 00:58:28 +0200 |
commit | fec59f7370a321b4086a4a2758848f62c7d9348d (patch) | |
tree | f27bbf8a989a87935821db1030a8700551c1d560 | |
parent | 6f259b925794798a10616359f599b3d8f28055c9 (diff) | |
download | st-fec59f7370a321b4086a4a2758848f62c7d9348d.tar.gz st-fec59f7370a321b4086a4a2758848f62c7d9348d.tar.bz2 |
fixed potential bug in IS_SET().
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 }; |