Portability fix: isdigit expects unsigned char.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Thu, 24 Oct 2002 19:00:38 +0000 (19:00 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Thu, 24 Oct 2002 19:00:38 +0000 (19:00 +0000)
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;