Fix a signed/unsigned comparison when wchar_t is unsigned by casting the

wchar_t to a wint_t.
This commit is contained in:
Andrew Turner 2013-01-06 03:08:27 +00:00
parent 3c96f482d9
commit 6d3d522f78
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245093

View File

@ -280,7 +280,7 @@ filter(FILE *f)
obuf[col].c_width = w;
for (i = 1; i < w; i++)
obuf[col + i].c_width = -1;
} else if (obuf[col].c_char == c) {
} else if ((wint_t)obuf[col].c_char == c) {
for (i = 0; i < w; i++)
obuf[col + i].c_mode |= BOLD|mode;
} else {