X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fblue.c;fp=test%2Fblue.c;h=1d168e37085400846be966b88b6a9313b24a8c17;hp=45fce074d3c2fe68e42113141d156937a7ea7e7c;hb=5723efe1a5c87ef6a0afa2426538156241f380db;hpb=11dcb05d1b3076f114ee807bd68cee1cfadff7dc diff --git a/test/blue.c b/test/blue.c index 45fce074..1d168e37 100644 --- a/test/blue.c +++ b/test/blue.c @@ -36,7 +36,7 @@ *****************************************************************************/ /* - * $Id: blue.c,v 1.42 2016/04/09 23:55:52 tom Exp $ + * $Id: blue.c,v 1.44 2016/04/16 23:20:09 tom Exp $ */ #include @@ -105,7 +105,7 @@ static int letters[4] = 'c', /* clubs */ }; -#ifdef HAVE_LANGINFO_CODESET +#if HAVE_LANGINFO_CODESET #if HAVE_TIGETSTR static int glyphs[] = @@ -202,9 +202,9 @@ printcard(int value) } else { int which = (value / SUIT_LENGTH); int isuit = (value % SUIT_LENGTH); - attr_t color = COLOR_PAIR(((which % 2) == 0) - ? RED_ON_WHITE - : BLACK_ON_WHITE); + attr_t color = (attr_t) COLOR_PAIR(((which % 2) == 0) + ? RED_ON_WHITE + : BLACK_ON_WHITE); addch(ranks[isuit][0] | (chtype) COLOR_PAIR(BLUE_ON_WHITE)); addch(ranks[isuit][1] | (chtype) COLOR_PAIR(BLUE_ON_WHITE));