diff options
| author | Paul Eggert | 2011-06-18 09:19:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-18 09:19:18 -0700 |
| commit | b02c740e9d1d9669b34cac8ff093005404da41ef (patch) | |
| tree | f31e7002dd2a2bc4fc88af9d7d63c7ca55a91f80 /src | |
| parent | ebc96716caba6515eb7bd74cca252e1a36d6c99b (diff) | |
| download | emacs-b02c740e9d1d9669b34cac8ff093005404da41ef.tar.gz emacs-b02c740e9d1d9669b34cac8ff093005404da41ef.zip | |
* ftfont.c (ftfont_shape_by_flt): Use signed integers for lengths.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/ftfont.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 360027cfa4d..fdf145d7d95 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-06-18 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-06-18 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * ftfont.c (ftfont_shape_by_flt): Use signed integers for lengths. | ||
| 4 | |||
| 3 | * font.c (Ffont_shape_gstring): Don't assume glyph len fits in 'int'. | 5 | * font.c (Ffont_shape_gstring): Don't assume glyph len fits in 'int'. |
| 4 | 6 | ||
| 5 | * fns.c (Ffillarray): Don't assume bool vector size fits in 'int'. | 7 | * fns.c (Ffillarray): Don't assume bool vector size fits in 'int'. |
diff --git a/src/ftfont.c b/src/ftfont.c index 5037d54bc2f..d1effaa88a9 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -2385,8 +2385,8 @@ static Lisp_Object | |||
| 2385 | ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font, | 2385 | ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font, |
| 2386 | FT_Face ft_face, OTF *otf, FT_Matrix *matrix) | 2386 | FT_Face ft_face, OTF *otf, FT_Matrix *matrix) |
| 2387 | { | 2387 | { |
| 2388 | EMACS_UINT len = LGSTRING_GLYPH_LEN (lgstring); | 2388 | EMACS_INT len = LGSTRING_GLYPH_LEN (lgstring); |
| 2389 | EMACS_UINT i; | 2389 | EMACS_INT i; |
| 2390 | struct MFLTFontFT flt_font_ft; | 2390 | struct MFLTFontFT flt_font_ft; |
| 2391 | MFLT *flt = NULL; | 2391 | MFLT *flt = NULL; |
| 2392 | int with_variation_selector = 0; | 2392 | int with_variation_selector = 0; |