svn commit: r302599 - head/usr.bin/tr
Andrey A. Chernov
ache at FreeBSD.org
Mon Jul 11 23:06:12 UTC 2016
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) {
More information about the svn-src-all
mailing list