From f5b9da6f317e53838229bb34eaf2a462614214d2 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 17 Sep 2011 08:11:11 +0000 Subject: [PATCH] Fix x11font_has_glyph so it doesn't get caught out by signed chars. [originally from svn r9295] --- unix/gtkfont.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unix/gtkfont.c b/unix/gtkfont.c index af577bda..ebdc4bce 100644 --- a/unix/gtkfont.c +++ b/unix/gtkfont.c @@ -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]); } }