X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fsavescreen.c;h=3b8ef47ec8a326f43e7d1b6268af66e8734a2ed7;hp=01bfe06b687752012c833a521b5ce24dba723f4b;hb=21c8ffa0edf2e389f3f674f0c08009002c6f357d;hpb=fe6abf09238512f5a902bc1aeab2263d1e997396 diff --git a/test/savescreen.c b/test/savescreen.c index 01bfe06b..3b8ef47e 100644 --- a/test/savescreen.c +++ b/test/savescreen.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: savescreen.c,v 1.27 2015/03/28 23:21:28 tom Exp $ + * $Id: savescreen.c,v 1.28 2015/08/22 22:40:22 tom Exp $ * * Demonstrate save/restore functions from the curses library. * Thomas Dickey - 2007/7/14 @@ -471,7 +471,7 @@ main(int argc, char *argv[]) continue; } if (!done) { - attr_t attr = (A_REVERSE | COLOR_PAIR(color * COLORS)); + attr_t attr = (A_REVERSE | (attr_t) COLOR_PAIR(color * COLORS)); chtype ch2 = (altchars ? ACS_DIAMOND : '#'); move(y, x); addch(ch2 | attr);