Date: Mon, 11 Jul 2016 23:06:11 +0000 (UTC) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r302599 - head/usr.bin/tr Message-ID: <201607112306.u6BN6BQ4021230@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ache Date: Mon Jul 11 23:06:11 2016 New Revision: 302599 URL: https://svnweb.freebsd.org/changeset/base/302599 Log: Cast WCHAR_MAX to wint_t, it can be unsigned on some systems. Modified: head/usr.bin/tr/tr.c Modified: head/usr.bin/tr/tr.c ============================================================================== --- head/usr.bin/tr/tr.c Mon Jul 11 23:01:58 2016 (r302598) +++ head/usr.bin/tr/tr.c Mon Jul 11 23:06:11 2016 (r302599) @@ -266,7 +266,7 @@ endloop: */ s2.str = argv[1]; s2.state = NORMAL; - for (cnt = 0; cnt <= WCHAR_MAX; cnt++) { + for (cnt = 0; cnt <= (wint_t)WCHAR_MAX; cnt++) { if (Cflag && !iswrune(cnt)) continue; if (cmap_lookup(map, cnt) == OOBCH) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607112306.u6BN6BQ4021230>