X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fview.c;h=8381dc8898c48fc878e5eeb21f1a7b25f26701e4;hp=ad6bb2e1858c4256977b0a0457e93676e78a5fc2;hb=0eb88fc5281804773e2a0c7a488a4452463535ce;hpb=661078ddbde3ce0f3b06e95642fbb9b5fef7dca1 diff --git a/test/view.c b/test/view.c index ad6bb2e1..8381dc88 100644 --- a/test/view.c +++ b/test/view.c @@ -22,7 +22,7 @@ * scroll operation worked, and the refresh() code only had to do a * partial repaint. * - * $Id: view.c,v 1.26 1997/11/15 22:36:41 tom Exp $ + * $Id: view.c,v 1.27 1998/08/22 18:33:41 tom Exp $ */ #include @@ -348,9 +348,9 @@ static void show_all(void) for (i = 1; i < LINES; i++) { move(i, 0); if ((s = lptr[i-1]) != 0 && (int)strlen(s) > shift) - printw("%3d:%.*s", lptr+i-lines, COLS-4, s + shift); + printw("%3ld:%.*s", (long) (lptr+i-lines), COLS-4, s + shift); else - printw("%3d:", lptr+i-lines); + printw("%3ld:", (long) (lptr+i-lines)); clrtoeol(); } setscrreg(1, LINES-1);