From 78dc12eec73e58c123b506bc1e3059c0b73d1220 Mon Sep 17 00:00:00 2001 From: Simon Tatham 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. [originally from svn r9426] [r9409 == 053d2ba6d1c35c3d3c77bbc48bfd31fd8628ed35] --- 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) {