Fix -Wchar-subscripts warning

warning: array subscript has type ‘char’ [-Wchar-subscripts]
This commit is contained in:
William S Fulton 2021-03-29 23:42:22 +01:00
commit 661cd54526
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ int isStructuralDoxygen(String *s) {
const size_t len = strlen(structuralTags[n]);
if (strncmp(slashPointer, structuralTags[n], len) == 0) {
/* 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;
}
}