From: Todd C. Miller Date: Fri, 18 Jun 2010 22:38:28 +0000 (-0400) Subject: Quiet a compiler warning. X-Git-Tag: SUDO_1_7_3~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a38172e26cd8b8538d8d9609d1511fb4ec520a6;p=sudo Quiet a compiler warning. --HG-- branch : 1.7 --- diff --git a/getdate.c b/getdate.c index ab0f4fa71..7deb31a07 100644 --- a/getdate.c +++ b/getdate.c @@ -744,7 +744,7 @@ LookupWord(buff) /* Make it lowercase. */ for (p = buff; *p; p++) if (isupper((unsigned char)*p)) - *p = tolower(*p); + *p = tolower((unsigned char)*p); if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) { yylval.Meridian = MERam; diff --git a/getdate.y b/getdate.y index 1521edde4..c3d8a9e4e 100644 --- a/getdate.y +++ b/getdate.y @@ -677,7 +677,7 @@ LookupWord(buff) /* Make it lowercase. */ for (p = buff; *p; p++) if (isupper((unsigned char)*p)) - *p = tolower(*p); + *p = tolower((unsigned char)*p); if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) { yylval.Meridian = MERam;