Fix -Wchar-subscripts warning
warning: array subscript has type ‘char’ [-Wchar-subscripts]
This commit is contained in:
parent
fb0c4aeb53
commit
661cd54526
2 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ static int is_digits(const String *str) {
|
|||
const char *s = Char(str);
|
||||
int isdigits = (*s != 0);
|
||||
while (*s) {
|
||||
if (!isdigit(*s)) {
|
||||
if (!isdigit((int)*s)) {
|
||||
isdigits = 0;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue