svn commit: r302616 - head/usr.bin/tr

Andrey A. Chernov ache at FreeBSD.org
Tue Jul 12 04:29:35 UTC 2016


Author: ache
Date: Tue Jul 12 04:29:34 2016
New Revision: 302616
URL: https://svnweb.freebsd.org/changeset/base/302616

Log:
  Undo r302599 and partially r302594 case 2):
  since WCHAR_MAX can be not a valid wchar value, it is easier to stay
  inside wint_t.

Modified:
  head/usr.bin/tr/tr.c

Modified: head/usr.bin/tr/tr.c
==============================================================================
--- head/usr.bin/tr/tr.c	Tue Jul 12 04:20:44 2016	(r302615)
+++ head/usr.bin/tr/tr.c	Tue Jul 12 04:29:34 2016	(r302616)
@@ -266,7 +266,7 @@ endloop:
 		 */
 		s2.str = argv[1];
 		s2.state = NORMAL;
-		for (cnt = 0; cnt <= (wint_t)WCHAR_MAX; cnt++) {
+		for (cnt = 0; cnt <= WINT_MAX; cnt++) {
 			if (Cflag && !iswrune(cnt))
 				continue;
 			if (cmap_lookup(map, cnt) == OOBCH) {


More information about the svn-src-all mailing list