X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lwlib%2Fxlwmenu.c;h=313e46f728a60b176472615b21483f9b4fd6b190;hb=d3dd71489ab2730d79536ebdc3c56cca82766e9d;hp=cf4de8d908240a1d72bdb01f7775738b3075eb76;hpb=77dcef404dc78635f6ffa8f71a803d2bc7cc8921;p=chise%2Fxemacs-chise.git diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index cf4de8d..313e46f 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -483,7 +483,8 @@ massage_resource_name (CONST char *in, char *out) char ch = massaged_resource_char[(unsigned char) *in++]; if (ch) { - *out++ = firstp ? tolower (ch) : toupper (ch); + int int_ch = (int) (unsigned char) ch; + *out++ = firstp ? tolower (int_ch) : toupper (int_ch); firstp = False; while ((ch = massaged_resource_char[(unsigned char) *in++]) != '\0') *out++ = ch;