diff options
Diffstat (limited to 'src/ftfont.c')
| -rw-r--r-- | src/ftfont.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index 131465b4f85..5545b4b4ae2 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -1033,13 +1033,13 @@ ftfont_list (Lisp_Object frame, Lisp_Object spec) | |||
| 1033 | #endif /* HAVE_LIBOTF */ | 1033 | #endif /* HAVE_LIBOTF */ |
| 1034 | if (VECTORP (chars)) | 1034 | if (VECTORP (chars)) |
| 1035 | { | 1035 | { |
| 1036 | int j; | 1036 | ptrdiff_t j; |
| 1037 | 1037 | ||
| 1038 | if (FcPatternGetCharSet (fontset->fonts[i], FC_CHARSET, 0, &charset) | 1038 | if (FcPatternGetCharSet (fontset->fonts[i], FC_CHARSET, 0, &charset) |
| 1039 | != FcResultMatch) | 1039 | != FcResultMatch) |
| 1040 | continue; | 1040 | continue; |
| 1041 | for (j = 0; j < ASIZE (chars); j++) | 1041 | for (j = 0; j < ASIZE (chars); j++) |
| 1042 | if (NATNUMP (AREF (chars, j)) | 1042 | if (TYPE_RANGED_INTEGERP (FcChar32, AREF (chars, j)) |
| 1043 | && FcCharSetHasChar (charset, XFASTINT (AREF (chars, j)))) | 1043 | && FcCharSetHasChar (charset, XFASTINT (AREF (chars, j)))) |
| 1044 | break; | 1044 | break; |
| 1045 | if (j == ASIZE (chars)) | 1045 | if (j == ASIZE (chars)) |
| @@ -2394,8 +2394,8 @@ static Lisp_Object | |||
| 2394 | ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font, | 2394 | ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font, |
| 2395 | FT_Face ft_face, OTF *otf, FT_Matrix *matrix) | 2395 | FT_Face ft_face, OTF *otf, FT_Matrix *matrix) |
| 2396 | { | 2396 | { |
| 2397 | EMACS_INT len = LGSTRING_GLYPH_LEN (lgstring); | 2397 | ptrdiff_t len = LGSTRING_GLYPH_LEN (lgstring); |
| 2398 | EMACS_INT i; | 2398 | ptrdiff_t i; |
| 2399 | struct MFLTFontFT flt_font_ft; | 2399 | struct MFLTFontFT flt_font_ft; |
| 2400 | MFLT *flt = NULL; | 2400 | MFLT *flt = NULL; |
| 2401 | int with_variation_selector = 0; | 2401 | int with_variation_selector = 0; |
| @@ -2423,7 +2423,7 @@ ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font, | |||
| 2423 | } | 2423 | } |
| 2424 | 2424 | ||
| 2425 | len = i; | 2425 | len = i; |
| 2426 | lint_assume (len <= TYPE_MAXIMUM (EMACS_INT) - 2); | 2426 | lint_assume (len <= STRING_BYTES_BOUND); |
| 2427 | 2427 | ||
| 2428 | if (with_variation_selector) | 2428 | if (with_variation_selector) |
| 2429 | { | 2429 | { |