Module Name: xsrc Committed By: joerg Date: Thu Oct 13 23:38:48 UTC 2016
Modified Files: xsrc/external/mit/libX11/dist/modules/im/ximcp: imLcLkup.c Log Message: Add explicit char cast to deal with constants being implicitly changed on signed char platforms. To generate a diff of this commit: cvs rdiff -u -r1.1.1.5 -r1.2 \ xsrc/external/mit/libX11/dist/modules/im/ximcp/imLcLkup.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: xsrc/external/mit/libX11/dist/modules/im/ximcp/imLcLkup.c diff -u xsrc/external/mit/libX11/dist/modules/im/ximcp/imLcLkup.c:1.1.1.5 xsrc/external/mit/libX11/dist/modules/im/ximcp/imLcLkup.c:1.2 --- xsrc/external/mit/libX11/dist/modules/im/ximcp/imLcLkup.c:1.1.1.5 Thu May 30 23:04:43 2013 +++ xsrc/external/mit/libX11/dist/modules/im/ximcp/imLcLkup.c Thu Oct 13 23:38:47 2016 @@ -219,9 +219,9 @@ _XimLocalUtf8LookupString(XIC xic, XKeyE if(status) *status = XBufferOverflow; return (ret); } - buffer[0] = 0xe0 | ((BRL_UC_ROW >> 12) & 0x0f); - buffer[1] = 0x80 | ((BRL_UC_ROW >> 8) & 0x30) | (pattern >> 6); - buffer[2] = 0x80 | (pattern & 0x3f); + buffer[0] = (char)(0xe0 | ((BRL_UC_ROW >> 12) & 0x0f)); + buffer[1] = (char)(0x80 | ((BRL_UC_ROW >> 8) & 0x30) | (pattern >> 6)); + buffer[2] = (char)(0x80 | (pattern & 0x3f)); if(keysym) { *keysym = XK_braille_blank | pattern; if(status) *status = XLookupBoth;