From 400d5717bbb11e662517647e79c6f1fc9c3540df Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 5 Mar 2012 18:34:40 +0000 Subject: [PATCH] Fix a type mismatch in minibidi.c - r9409 changed the 'wc' fields in bidi_char from wchar_t to unsigned int, but omitted to similarly adjust the parameter to doMirror which is passed a pointer to that field. git-svn-id: svn://svn.tartarus.org/sgt/putty@9426 cda61777-01e9-0310-a592-d414129be87e --- minibidi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minibidi.c b/minibidi.c index f2c68c4f..85a0c9c4 100644 --- a/minibidi.c +++ b/minibidi.c @@ -70,7 +70,7 @@ unsigned char setOverrideBits(unsigned char level, unsigned char override); int getPreviousLevel(unsigned char* level, int from); int do_shape(bidi_char *line, bidi_char *to, int count); int do_bidi(bidi_char *line, int count); -void doMirror(wchar_t* ch); +void doMirror(unsigned int *ch); /* character types */ enum { @@ -1636,7 +1636,7 @@ int do_bidi(bidi_char *line, int count) * takes a pointer to a character that is checked for * having a mirror glyph. */ -void doMirror(wchar_t* ch) +void doMirror(unsigned int *ch) { if ((*ch & 0xFF00) == 0) { switch (*ch) { -- 2.11.0