X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftestcurs.c;h=f9716e971bcbe19c5ffb4a3d06ece0d3296690f2;hp=e8ec4ce7b7d2b8039f7efa9de9e8d68b13690de6;hb=c3e8eb8e7407c4173394c2f52c635ed86327edc6;hpb=92e187a3459ab7ce1613a3684ca6642447c73620 diff --git a/test/testcurs.c b/test/testcurs.c index e8ec4ce7..f9716e97 100644 --- a/test/testcurs.c +++ b/test/testcurs.c @@ -1,5 +1,4 @@ /* - * * This is a test program for the PDCurses screen package for IBM PC type * machines. * @@ -7,7 +6,7 @@ * wrs(5/28/93) -- modified to be consistent (perform identically) with either * PDCurses or under Unix System V, R4 * - * $Id: testcurs.c,v 1.42 2010/05/01 19:23:19 tom Exp $ + * $Id: testcurs.c,v 1.44 2012/06/09 19:10:45 tom Exp $ */ #include @@ -86,7 +85,7 @@ main( #ifdef A_COLOR if (has_colors()) { init_pair(1, COLOR_WHITE, COLOR_BLUE); - wbkgd(win, COLOR_PAIR(1)); + wbkgd(win, (chtype) COLOR_PAIR(1)); } else wbkgd(win, A_REVERSE); #else @@ -416,7 +415,7 @@ inputTest(WINDOW *win) "%d %[][a-zA-Z]s", "%d %[^0-9]" }; - const char *format = fmt[repeat % SIZEOF(fmt)]; + const char *format = fmt[(unsigned) repeat % SIZEOF(fmt)]; wclear(win); MvWAddStr(win, 3, 2, "The window should have moved"); @@ -492,7 +491,7 @@ outputTest(WINDOW *win) #ifdef A_COLOR if (has_colors()) { init_pair(3, COLOR_BLUE, COLOR_WHITE); - wbkgd(win1, COLOR_PAIR(3)); + wbkgd(win1, (chtype) COLOR_PAIR(3)); } else wbkgd(win1, A_NORMAL); #else