1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 15:48:06 -05:00

Fix x11font_has_glyph so it doesn't get caught out by signed chars.

[originally from svn r9295]
This commit is contained in:
Simon Tatham 2011-09-17 08:11:11 +00:00
parent 218f3ffded
commit f5b9da6f31

View File

@ -425,7 +425,8 @@ static int x11font_has_glyph(unifont *font, wchar_t glyph)
if (!sbstring[0])
return FALSE; /* not even in the charset */
return x11_font_has_glyph(xfont->fonts[0], 0, sbstring[0]);
return x11_font_has_glyph(xfont->fonts[0], 0,
(unsigned char)sbstring[0]);
}
}