You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from pixd.c:2:
pixd.c: In function ‘parse_range’:
pixd.c:101:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
101 | if (!isdigit(*first) || end != delim) errx(1, "invalid start value in range %s", str);
| ^~~~~~
pixd.c:105:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
105 | if (!isdigit(*second) || *end != '\0') errx(1, "invalid end/size value in range %s", str);
to fix:
101 | if (!isdigit( (unsigned char) *first) || end != delim) errx(1, "invalid start value in range %s", str);
105 | if (!isdigit( (unsigned char) *second) || *end != '\0') errx(1, "invalid end/size value in range %s", str);
The text was updated successfully, but these errors were encountered:
cc -Wall -std=c11 -o pixd pixd.c
In file included from pixd.c:2:
pixd.c: In function ‘parse_range’:
pixd.c:101:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
101 | if (!isdigit(*first) || end != delim) errx(1, "invalid start value in range %s", str);
| ^~~~~~
pixd.c:105:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
105 | if (!isdigit(*second) || *end != '\0') errx(1, "invalid end/size value in range %s", str);
to fix:
101 | if (!isdigit( (unsigned char) *first) || end != delim) errx(1, "invalid start value in range %s", str);
105 | if (!isdigit( (unsigned char) *second) || *end != '\0') errx(1, "invalid end/size value in range %s", str);
The text was updated successfully, but these errors were encountered: