diff options
author | Daniel Zimmermann <netzimme@googlemail.com> | 2011-05-24 06:22:32 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2011-05-24 06:22:32 +0200 |
commit | 3ad8f355371d495fc0897a5217a48c1bf4c4a982 (patch) | |
tree | f372cedb79910f12b87066931a549e3cf5e3788a /src/cff/cffgload.c | |
parent | 79405d75c0b485eceafaff51c8bdb2412b7dbc4c (diff) | |
download | freetype2-3ad8f355371d495fc0897a5217a48c1bf4c4a982.tar.gz |
Reduce warnings for MS Visual Studio 2010.
* src/autofit/afhints.c (af_glyph_hints_get_num_segments,
af_glyph_hints_get_segment_offset) [!FT_DEBUG_AUTOFIT]: Provide
return value.
* src/cff/cffgload.c (cff_slot_load): Add cast.
* src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids): Use proper
loop variable type.
Diffstat (limited to 'src/cff/cffgload.c')
-rw-r--r-- | src/cff/cffgload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c index 78159ac39..cb06bdf10 100644 --- a/src/cff/cffgload.c +++ b/src/cff/cffgload.c @@ -2706,7 +2706,7 @@ glyph_index ); if ( fd_index >= cff->num_subfonts ) - fd_index = cff->num_subfonts - 1; + fd_index = (FT_Byte)( cff->num_subfonts - 1 ); top_upm = cff->top_font.font_dict.units_per_em; sub_upm = cff->subfonts[fd_index]->font_dict.units_per_em; |