From: handa Date: Tue, 12 Oct 2004 12:16:06 +0000 (+0000) Subject: (KeyProc): Cast buf to `unsigned char *'. X-Git-Tag: REL-1-2-0~130 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7420fe6ec789d08c6a7462079bb0a3a7135aec2;p=m17n%2Fm17n-lib.git (KeyProc): Cast buf to `unsigned char *'. --- diff --git a/example/medit.c b/example/medit.c index e1477df..3b178bf 100644 --- a/example/medit.c +++ b/example/medit.c @@ -1592,7 +1592,8 @@ KeyProc (Widget w, XEvent *event, String *str, Cardinal *num) { MText *temp = mtext (); - mtext_cat_char (temp, buf[0] == '\r' ? '\n' : buf[0]); + mtext_cat_char (temp, buf[0] == '\r' ? '\n' + : ((unsigned char *) buf)[0]); if (current_input_context) mtext_put_prop (temp, 0, 1, Mlanguage, current_input_context->im->language);