Date: Sun, 6 Jan 2013 03:08:28 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245093 - head/usr.bin/ul Message-ID: <201301060308.r0638SA3071563@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301060308.r0638SA3071563>