aboutsummaryrefslogtreecommitdiffstats
path: root/src/ftfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ftfont.c')
-rw-r--r--src/ftfont.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ftfont.c b/src/ftfont.c
index 7858a31be21..5f8dbb4d455 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -1026,13 +1026,13 @@ ftfont_list (Lisp_Object frame, Lisp_Object spec)
1026#endif /* HAVE_LIBOTF */ 1026#endif /* HAVE_LIBOTF */
1027 if (VECTORP (chars)) 1027 if (VECTORP (chars))
1028 { 1028 {
1029 int j; 1029 ptrdiff_t j;
1030 1030
1031 if (FcPatternGetCharSet (fontset->fonts[i], FC_CHARSET, 0, &charset) 1031 if (FcPatternGetCharSet (fontset->fonts[i], FC_CHARSET, 0, &charset)
1032 != FcResultMatch) 1032 != FcResultMatch)
1033 continue; 1033 continue;
1034 for (j = 0; j < ASIZE (chars); j++) 1034 for (j = 0; j < ASIZE (chars); j++)
1035 if (NATNUMP (AREF (chars, j)) 1035 if (TYPE_RANGED_INTEGERP (FcChar32, AREF (chars, j))
1036 && FcCharSetHasChar (charset, XFASTINT (AREF (chars, j)))) 1036 && FcCharSetHasChar (charset, XFASTINT (AREF (chars, j))))
1037 break; 1037 break;
1038 if (j == ASIZE (chars)) 1038 if (j == ASIZE (chars))
@@ -2387,8 +2387,8 @@ static Lisp_Object
2387ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font, 2387ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font,
2388 FT_Face ft_face, OTF *otf, FT_Matrix *matrix) 2388 FT_Face ft_face, OTF *otf, FT_Matrix *matrix)
2389{ 2389{
2390 EMACS_INT len = LGSTRING_GLYPH_LEN (lgstring); 2390 ptrdiff_t len = LGSTRING_GLYPH_LEN (lgstring);
2391 EMACS_INT i; 2391 ptrdiff_t i;
2392 struct MFLTFontFT flt_font_ft; 2392 struct MFLTFontFT flt_font_ft;
2393 MFLT *flt = NULL; 2393 MFLT *flt = NULL;
2394 int with_variation_selector = 0; 2394 int with_variation_selector = 0;
@@ -2416,7 +2416,6 @@ ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font,
2416 } 2416 }
2417 2417
2418 len = i; 2418 len = i;
2419 lint_assume (len <= TYPE_MAXIMUM (EMACS_INT) - 2);
2420 2419
2421 if (with_variation_selector) 2420 if (with_variation_selector)
2422 { 2421 {