X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fclip_printw.c;h=272da7b409c7f801e2f5919b5891106a6b5e39fb;hp=c90cc85910ee1370a3bc8a7d34c854d88a0abed7;hb=c04d54322f7835ed42e597967d8fa5471025fcac;hpb=c8e187fc9682a3c5cfaebc480fc98d8585f6caf6;ds=inline diff --git a/test/clip_printw.c b/test/clip_printw.c index c90cc859..272da7b4 100644 --- a/test/clip_printw.c +++ b/test/clip_printw.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: clip_printw.c,v 1.4 2009/08/29 19:00:44 tom Exp $ + * $Id: clip_printw.c,v 1.5 2009/10/24 21:02:55 tom Exp $ * * demonstrate how to use printw without wrapping. */ @@ -337,7 +337,7 @@ test_clipping(WINDOW *win) } if ((buffer = typeMalloc(char, need)) != 0) { for (j = 0; j < need; ++j) { - buffer[j] = 'A' + (j % 26); + buffer[j] = (char) ('A' + (j % 26)); } buffer[need - 1] = '\0'; st.status = clip_wprintw(win, fmt, '[', buffer, ']');