From 6d3d522f78f924a5b91a9b7821c7a3b7f0fe9e4c Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Sun, 6 Jan 2013 03:08:27 +0000 Subject: [PATCH] Fix a signed/unsigned comparison when wchar_t is unsigned by casting the wchar_t to a wint_t. --- usr.bin/ul/ul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {