summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/refresh.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcurses/refresh.c')
-rw-r--r--lib/libcurses/refresh.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libcurses/refresh.c b/lib/libcurses/refresh.c
index d8860b4..b6d432b 100644
--- a/lib/libcurses/refresh.c
+++ b/lib/libcurses/refresh.c
@@ -337,8 +337,10 @@ makech(win, wy)
}
/* Enter/exit standout mode as appropriate. */
- if (SO && !(nsp->attr & __STANDOUT) !=
- !(curscr->flags & __WSTANDOUT)) {
+ /* don't use simple ! here due to gcc -O bug */
+ if (SO && !!(nsp->attr & __STANDOUT) !=
+ !!(curscr->flags & __WSTANDOUT)
+ ) {
if (nsp->attr & __STANDOUT) {
tputs(SO, 0, __cputchar);
curscr->flags |= __WSTANDOUT;
OpenPOWER on IntegriCloud