]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commitdiff
Fix a type mismatch in minibidi.c - r9409 changed the 'wc' fields in
authorSimon Tatham <anakin@pobox.com>
Mon, 5 Mar 2012 18:34:40 +0000 (18:34 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 5 Mar 2012 18:34:40 +0000 (18:34 +0000)
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: http://svn.tartarus.org/sgt/putty@9426 cda61777-01e9-0310-a592-d414129be87e

minibidi.c

index f2c68c4f8afc941851cb34be33136cb21f8340f5..85a0c9c49b6576bd05c2f8eae81d4932e93d3314 100644 (file)
@@ -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) {