X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fhashtest.c;h=fbbcc725571b7862e2705d2f36b2f9429a063033;hp=06f29098911763b6eb7584185f3e2762d6a59492;hb=refs%2Ftags%2Fv5.5;hpb=46722468f47c2b77b3987729b4bcf2321cccfd01 diff --git a/test/hashtest.c b/test/hashtest.c index 06f29098..fbbcc725 100644 --- a/test/hashtest.c +++ b/test/hashtest.c @@ -3,7 +3,7 @@ * * Generate timing statistics for vertical-motion optimization. * - * $Id: hashtest.c,v 1.22 2002/06/29 23:32:18 tom Exp $ + * $Id: hashtest.c,v 1.24 2005/04/16 16:36:54 tom Exp $ */ #ifdef TRACE @@ -14,8 +14,6 @@ #define USE_TRACE 0 #endif -#include - #include #define LO_CHAR ' ' @@ -65,11 +63,11 @@ genlines(int base) move(0, 0); for (i = 0; i < head_lines; i++) for (j = 0; j < COLS; j++) - addch((j % 8 == 0) ? ('A' + j / 8) : '-'); + addch(UChar((j % 8 == 0) ? ('A' + j / 8) : '-')); move(head_lines, 0); for (i = head_lines; i < LINES - foot_lines; i++) { - int c = (base - LO_CHAR + i) % (HI_CHAR - LO_CHAR + 1) + LO_CHAR; + chtype c = (base - LO_CHAR + i) % (HI_CHAR - LO_CHAR + 1) + LO_CHAR; int hi = (extend_corner || (i < LINES - 1)) ? COLS : COLS - 1; for (j = 0; j < hi; j++) addch(c); @@ -78,7 +76,7 @@ genlines(int base) for (i = LINES - foot_lines; i < LINES; i++) { move(i, 0); for (j = 0; j < (extend_corner ? COLS : COLS - 1); j++) - addch((j % 8 == 0) ? ('A' + j / 8) : '-'); + addch(UChar((j % 8 == 0) ? ('A' + j / 8) : '-')); } scrollok(stdscr, TRUE);