Skip to content

Commit 67dc96e

Browse files
committed
Fix -Wchar-subscripts warnings with Newlib
1 parent 1ccb43a commit 67dc96e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hostfs.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,9 @@ hostfs_read_object_info(const char *host_pathname,
698698
}
699699
}
700700
} else if (strlen(comma + 1) == 3) {
701-
if (isxdigit(comma[1]) && isxdigit(comma[2]) && isxdigit(comma[3])) {
701+
if (isxdigit((unsigned char)comma[1]) &&
702+
isxdigit((unsigned char)comma[2]) &&
703+
isxdigit((unsigned char)comma[3])) {
702704
file_type = (ARMword) strtoul(comma + 1, NULL, 16);
703705
truncate_name = true;
704706
}

0 commit comments

Comments
 (0)