1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

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 == 053d2ba6d1]
This commit is contained in:
Simon Tatham 2012-03-05 18:34:40 +00:00
parent 9ecfbee08f
commit 78dc12eec7

View 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) {