From: arg@suckless.org Date: Mon, 24 Sep 2007 13:04:31 +0000 (+0200) Subject: casting char to int when using tolower (thanks to Jukkas careful cosmetic checking!) X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=72a8eb412f48edb6c3b113d2582722d1bc7c68ce;p=dmenu.git casting char to int when using tolower (thanks to Jukkas careful cosmetic checking!) --- diff --git a/dmenu.c b/dmenu.c index dea227e..b28a548 100644 --- a/dmenu.c +++ b/dmenu.c @@ -624,7 +624,7 @@ setup(Bool bottom) { int strcaseido(const char *text, const char *pattern) { for(; *text && *pattern; text++) - if (tolower(*text) == tolower(*pattern)) + if(tolower((int)*text) == tolower((int)*pattern)) pattern++; return !*pattern; }