diff options
Diffstat (limited to 'app/xterm/tabs.c')
-rw-r--r-- | app/xterm/tabs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/xterm/tabs.c b/app/xterm/tabs.c index 52cec209d..70d3e1eba 100644 --- a/app/xterm/tabs.c +++ b/app/xterm/tabs.c @@ -1,7 +1,7 @@ -/* $XTermId: tabs.c,v 1.37 2009/11/28 14:11:06 tom Exp $ */ +/* $XTermId: tabs.c,v 1.38 2010/04/17 17:11:43 tom Exp $ */ /* - * Copyright 2000-2008,2009 by Thomas E. Dickey + * Copyright 2000-2009,2010 by Thomas E. Dickey * * All Rights Reserved * @@ -59,9 +59,9 @@ #define TAB_INDEX(n) ((n) >> TAB_BITS_SHIFT) #define TAB_MASK(n) (1 << ((n) & (TAB_BITS_WIDTH-1))) -#define SET_TAB(tabs,n) tabs[TAB_INDEX(n)] |= TAB_MASK(n) -#define CLR_TAB(tabs,n) tabs[TAB_INDEX(n)] &= ~TAB_MASK(n) -#define TST_TAB(tabs,n) tabs[TAB_INDEX(n)] & TAB_MASK(n) +#define SET_TAB(tabs,n) UIntSet(tabs[TAB_INDEX(n)], TAB_MASK(n)) +#define CLR_TAB(tabs,n) UIntClr(tabs[TAB_INDEX(n)], TAB_MASK(n)) +#define TST_TAB(tabs,n) (tabs[TAB_INDEX(n)] & (unsigned) TAB_MASK(n)) /* * places tabstops at only every 8 columns |