diff --git a/lib/getdate.y b/lib/getdate.y index 4362443e5..0e508e4a4 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -751,7 +751,7 @@ LookupWord (YYSTYPE *yylval, char *buff) /* Make it lowercase. */ for (p = buff; *p; p++) if (ISUPPER ((unsigned char) *p)) - *p = tolower (*p); + *p = tolower ((int)*p); if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0) {