Cast to unsigned char instead of unsigned

Cast ctype argument to unsigned char
This commit is contained in:
Andrey A. Chernov 1996-04-03 07:47:35 +00:00
parent 7b0d14f596
commit 481f550e6c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15022

View File

@ -146,13 +146,13 @@ display(win, text, size)
text++;
continue;
}
if (!isprint(*text) && *text != '\t') {
if (!isprint((unsigned char)*text) && *text != '\t') {
waddch(win->x_win, '^');
getyx(win->x_win, win->x_line, win->x_col);
cch = (*text & 63) + 64;
waddch(win->x_win, cch);
} else
waddch(win->x_win, (unsigned)*text);
waddch(win->x_win, (unsigned char)*text);
getyx(win->x_win, win->x_line, win->x_col);
text++;
}