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
|
|
@ -93,7 +93,7 @@ int isStructuralDoxygen(String *s) {
|
||||||
const size_t len = strlen(structuralTags[n]);
|
const size_t len = strlen(structuralTags[n]);
|
||||||
if (strncmp(slashPointer, structuralTags[n], len) == 0) {
|
if (strncmp(slashPointer, structuralTags[n], len) == 0) {
|
||||||
/* Take care to avoid false positives with prefixes of other tags. */
|
/* Take care to avoid false positives with prefixes of other tags. */
|
||||||
if (slashPointer[len] == '\0' || isspace(slashPointer[len]))
|
if (slashPointer[len] == '\0' || isspace((int)slashPointer[len]))
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ static int is_digits(const String *str) {
|
||||||
const char *s = Char(str);
|
const char *s = Char(str);
|
||||||
int isdigits = (*s != 0);
|
int isdigits = (*s != 0);
|
||||||
while (*s) {
|
while (*s) {
|
||||||
if (!isdigit(*s)) {
|
if (!isdigit((int)*s)) {
|
||||||
isdigits = 0;
|
isdigits = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue