Author: andrew Date: Sun Jan 6 03:08:27 2013 New Revision: 245093 URL: http://svnweb.freebsd.org/changeset/base/245093
Log: Fix a signed/unsigned comparison when wchar_t is unsigned by casting the wchar_t to a wint_t. Modified: head/usr.bin/ul/ul.c Modified: head/usr.bin/ul/ul.c ============================================================================== --- head/usr.bin/ul/ul.c Sun Jan 6 02:52:23 2013 (r245092) +++ head/usr.bin/ul/ul.c Sun Jan 6 03:08:27 2013 (r245093) @@ -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 { _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"