Skip to content

Commit

Permalink
typecast the tolower() argument to an int to prevent compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Apr 21, 2004
1 parent 9ba010c commit a85fa66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/getdate.y
Expand Up @@ -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)
{
Expand Down

0 comments on commit a85fa66

Please sign in to comment.