From: Peter Verthez Date: Thu, 24 Oct 2002 19:00:38 +0000 (+0000) Subject: Portability fix: isdigit expects unsigned char. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=f14e8bb4d49f22970f7f4c4cbc5173faada5d083;p=gedcom-parse.git Portability fix: isdigit expects unsigned char. --- diff --git a/gedcom/age.c b/gedcom/age.c index 8518411..3b6a4bf 100644 --- a/gedcom/age.c +++ b/gedcom/age.c @@ -111,7 +111,7 @@ struct age_value gedcom_parse_age(const char* line_value) while (*ptr == ' ') ptr++; } - if (isdigit(*ptr)) { + if (isdigit((unsigned char)*ptr)) { int result = parse_numeric_age(&age_s, ptr); if (result == 0) { age_s.type = AGE_NUMERIC;