X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;ds=sidebyside;f=test%2Fblue.c;h=dcea13834a20924f60f9aa813d31b4dbd3f792a1;hb=555811d68fc57f29fcf3d803adfbf7070b6a70e7;hp=a798c9d50f579a99d56bf1ef5394adaa8eb409bb;hpb=59108c98bda25ae50b3a319e2bcb7f4b9a174024;p=ncurses.git diff --git a/test/blue.c b/test/blue.c index a798c9d5..dcea1383 100644 --- a/test/blue.c +++ b/test/blue.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2008,2009 Free Software Foundation, Inc. * + * Copyright (c) 1998-2009,2013 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -40,7 +40,7 @@ * results, use the ncurses(3) library. On non-Intel machines, SVr4 curses is * just as good. * - * $Id: blue.c,v 1.32 2009/10/10 16:16:46 tom Exp $ + * $Id: blue.c,v 1.34 2013/01/13 01:06:17 tom Exp $ */ #include @@ -202,8 +202,8 @@ printcard(int value) if (value == NOCARD) (void) addstr(" "); else { - addch(ranks[value % SUIT_LENGTH][0] | COLOR_PAIR(BLUE_ON_WHITE)); - addch(ranks[value % SUIT_LENGTH][1] | COLOR_PAIR(BLUE_ON_WHITE)); + addch(ranks[value % SUIT_LENGTH][0] | (chtype) COLOR_PAIR(BLUE_ON_WHITE)); + addch(ranks[value % SUIT_LENGTH][1] | (chtype) COLOR_PAIR(BLUE_ON_WHITE)); addch(suits[value / SUIT_LENGTH]); } (void) addch(' '); @@ -300,7 +300,7 @@ play_game(void) if (selection[i] != NOCARD) { move(BASEROW + (selection[i] / GRID_WIDTH) * 2 + 3, (selection[i] % GRID_WIDTH) * 5); - (void) printw(" %c ", (char) (*lp++ = 'a' + i)); + (void) printw(" %c ", (*lp++ = (char) ('a' + i))); } }; *lp = '\0';