X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdots_curses.c;h=dc767116d33055666d859559f55c406ee815c09d;hp=ef300ee4d3abd333cc46eb4b054eaa33c26ca8a9;hb=1bab6fd2bd6c65560d26b46b0a245bd7d46f2add;hpb=987faea6703ceb2c59ac9787f99eda67e3fe7676 diff --git a/test/dots_curses.c b/test/dots_curses.c index ef300ee4..dc767116 100644 --- a/test/dots_curses.c +++ b/test/dots_curses.c @@ -29,7 +29,7 @@ /* * Author: Thomas E. Dickey * - * $Id: dots_curses.c,v 1.1 2014/06/21 16:07:50 tom Exp $ + * $Id: dots_curses.c,v 1.2 2014/06/28 20:33:24 tom Exp $ * * A simple demo of the curses interface used for comparison with termcap. */ @@ -106,7 +106,7 @@ main(int argc GCC_UNUSED, for (bg = 0; bg < COLORS; bg++) { int pair = mypair(fg, bg); if (pair > 0) - init_pair(pair, fg, bg); + init_pair((short) pair, (short) fg, (short) bg); } } } @@ -142,7 +142,7 @@ main(int argc GCC_UNUSED, napms(1); } } - addch(p); + addch((chtype) p); refresh(); ++total_chars; }