projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f7ec4a
)
(KeyProc): Cast buf to `unsigned char *'.
author
handa
<handa>
Tue, 12 Oct 2004 12:16:06 +0000
(12:16 +0000)
committer
handa
<handa>
Tue, 12 Oct 2004 12:16:06 +0000
(12:16 +0000)
example/medit.c
patch
|
blob
|
history
diff --git
a/example/medit.c
b/example/medit.c
index
e1477df
..
3b178bf
100644
(file)
--- 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);