Cast WCHAR_MAX to wint_t, it can be unsigned on some systems.
This commit is contained in:
parent
6cdb0cba3e
commit
1cdf6eaaaf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302599
@ -266,7 +266,7 @@ main(int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
s2.str = argv[1];
|
s2.str = argv[1];
|
||||||
s2.state = NORMAL;
|
s2.state = NORMAL;
|
||||||
for (cnt = 0; cnt <= WCHAR_MAX; cnt++) {
|
for (cnt = 0; cnt <= (wint_t)WCHAR_MAX; cnt++) {
|
||||||
if (Cflag && !iswrune(cnt))
|
if (Cflag && !iswrune(cnt))
|
||||||
continue;
|
continue;
|
||||||
if (cmap_lookup(map, cnt) == OOBCH) {
|
if (cmap_lookup(map, cnt) == OOBCH) {
|
||||||
|
Loading…
Reference in New Issue
Block a user