Fix signed vs unsigned char issues found by NetBSD.

This commit is contained in:
Juan RP
2021-01-27 13:33:28 +01:00
committed by Duncan Overbruck
parent 18a2a2b0a7
commit 46b7057d91
3 changed files with 7 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ static bool is_revision(const char *str) {
return false;
}
/* allow underscore for accepting perl-Digest-1.17_01_1 etc. */
while (isdigit(str[0]) || str[0] == '_') {
while (isdigit((unsigned char)str[0]) || str[0] == '_') {
++str;
}
return str[0] == '\0';