2011-06-18 Paul Eggert <eggert@cs.ucla.edu>
+ * ftfont.c (ftfont_shape_by_flt): Use signed integers for lengths.
+
* font.c (Ffont_shape_gstring): Don't assume glyph len fits in 'int'.
* fns.c (Ffillarray): Don't assume bool vector size fits in 'int'.
ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font,
FT_Face ft_face, OTF *otf, FT_Matrix *matrix)
{
- EMACS_UINT len = LGSTRING_GLYPH_LEN (lgstring);
- EMACS_UINT i;
+ EMACS_INT len = LGSTRING_GLYPH_LEN (lgstring);
+ EMACS_INT i;
struct MFLTFontFT flt_font_ft;
MFLT *flt = NULL;
int with_variation_selector = 0;