From f14e8bb4d49f22970f7f4c4cbc5173faada5d083 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Thu, 24 Oct 2002 19:00:38 +0000 Subject: [PATCH] Portability fix: isdigit expects unsigned char. --- gedcom/age.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2