aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ul
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2013-01-06 03:08:27 +0000
committerAndrew Turner <andrew@FreeBSD.org>2013-01-06 03:08:27 +0000
commit6d3d522f78f924a5b91a9b7821c7a3b7f0fe9e4c (patch)
treece1768c1ec01a58d608c7389ab18c649192513cf /usr.bin/ul
parent3c96f482d96e67291a3a7a4f7c860affbf1d3655 (diff)
downloadsrc-6d3d522f78f924a5b91a9b7821c7a3b7f0fe9e4c.tar.gz
src-6d3d522f78f924a5b91a9b7821c7a3b7f0fe9e4c.zip
Fix a signed/unsigned comparison when wchar_t is unsigned by casting the
wchar_t to a wint_t.
Notes
Notes: svn path=/head/; revision=245093
Diffstat (limited to 'usr.bin/ul')
-rw-r--r--usr.bin/ul/ul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ul/ul.c b/usr.bin/ul/ul.c
index 4796956b7c73..7aecf6c1ec7e 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 {