Portability fix: isdigit expects unsigned char.
[gedcom-parse.git] / gedcom / age.c
index 8518411252cd952b0e6ff6c221ca12fed190ee27..3b6a4bf5da1cf520f7984e11c1b91b79f291fc42 100644 (file)
@@ -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;