mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08: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. */
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user