~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix x11font_has_glyph so it doesn't get caught out by signed chars.
[sgt/putty]
/
unix
/
gtkfont.c
diff --git
a/unix/gtkfont.c
b/unix/gtkfont.c
index
af577bd
..
ebdc4bc
100644
(file)
--- 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]);
}
}