mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 17:52:43 +00:00
Fix a signed/unsigned comparison when wchar_t is unsigned by casting the
wchar_t to a wint_t.
This commit is contained in:
parent
3c96f482d9
commit
6d3d522f78
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245093
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user