mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
typecast the tolower() argument to an int to prevent compiler warning
This commit is contained in:
parent
9ba010c629
commit
a85fa66cc8
@ -751,7 +751,7 @@ LookupWord (YYSTYPE *yylval, char *buff)
|
|||||||
/* Make it lowercase. */
|
/* Make it lowercase. */
|
||||||
for (p = buff; *p; p++)
|
for (p = buff; *p; p++)
|
||||||
if (ISUPPER ((unsigned char) *p))
|
if (ISUPPER ((unsigned char) *p))
|
||||||
*p = tolower (*p);
|
*p = tolower ((int)*p);
|
||||||
|
|
||||||
if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0)
|
if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user