diff options
author | andrew <andrew@FreeBSD.org> | 2013-01-06 03:08:27 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2013-01-06 03:08:27 +0000 |
commit | d277d5d64ad3a6ab134bf4dbbe7d56971adeb034 (patch) | |
tree | ce1768c1ec01a58d608c7389ab18c649192513cf /usr.bin/ul/ul.c | |
parent | 84aa559c28c182fbcef49966918e53d34be88df1 (diff) | |
download | FreeBSD-src-d277d5d64ad3a6ab134bf4dbbe7d56971adeb034.zip FreeBSD-src-d277d5d64ad3a6ab134bf4dbbe7d56971adeb034.tar.gz |
Fix a signed/unsigned comparison when wchar_t is unsigned by casting the
wchar_t to a wint_t.
Diffstat (limited to 'usr.bin/ul/ul.c')
-rw-r--r-- | usr.bin/ul/ul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ul/ul.c b/usr.bin/ul/ul.c index 4796956..7aecf6c 100644 --- a/usr.bin/ul/ul.c +++ b/usr.bin/ul/ul.c @@ -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 { |