Cast WCHAR_MAX to wint_t, it can be unsigned on some systems.

This commit is contained in:
ache 2016-07-11 23:06:11 +00:00
parent 6797545c54
commit 2d4f6f3596

View File

@ -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) {