summaryrefslogtreecommitdiff
path: root/lib/libX11/src/xlibi18n/lcUniConv/tcvn.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libX11/src/xlibi18n/lcUniConv/tcvn.h')
-rw-r--r--lib/libX11/src/xlibi18n/lcUniConv/tcvn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libX11/src/xlibi18n/lcUniConv/tcvn.h b/lib/libX11/src/xlibi18n/lcUniConv/tcvn.h
index 4662683dc..cd8fa8ce2 100644
--- a/lib/libX11/src/xlibi18n/lcUniConv/tcvn.h
+++ b/lib/libX11/src/xlibi18n/lcUniConv/tcvn.h
@@ -116,7 +116,7 @@ tcvn_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n)
{
unsigned char c = 0;
if (wc < 0x0080 && (wc >= 0x0020 || (0x00fe0076 & (1 << wc)) == 0)) {
- *r = wc;
+ *r = (unsigned char) wc;
return 1;
}
else if (wc >= 0x00a0 && wc < 0x01b8)