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) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to