From e7420fe6ec789d08c6a7462079bb0a3a7135aec2 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 12 Oct 2004 12:16:06 +0000 Subject: [PATCH] (KeyProc): Cast buf to `unsigned char *'. --- example/medit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 1.7.10.4