Index: third_party/freetype/src/psaux/t1cmap.c |
diff --git a/third_party/freetype/src/psaux/t1cmap.c b/third_party/freetype/src/psaux/t1cmap.c |
index fb1353ae0fd466896d364ab05de02786127e08de..2e2d433fc498b36a9818d9c5dd2a37ea4806009f 100644 |
--- a/third_party/freetype/src/psaux/t1cmap.c |
+++ b/third_party/freetype/src/psaux/t1cmap.c |
@@ -4,7 +4,7 @@ |
/* */ |
/* Type 1 character map support (body). */ |
/* */ |
-/* Copyright 2002, 2003, 2006, 2007, 2012 by */ |
+/* Copyright 2002-2015 by */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
/* */ |
/* This file is part of the FreeType project, and may only be used, */ |
@@ -39,7 +39,7 @@ |
FT_Service_PsCMaps psnames = (FT_Service_PsCMaps)face->psnames; |
- cmap->num_glyphs = face->type1.num_glyphs; |
+ cmap->num_glyphs = (FT_UInt)face->type1.num_glyphs; |
cmap->glyph_names = (const char* const*)face->type1.glyph_names; |
cmap->sid_to_string = psnames->adobe_std_strings; |
cmap->code_to_sid = is_expert ? psnames->adobe_expert_encoding |
@@ -189,8 +189,8 @@ |
FT_UNUSED( pointer ); |
- cmap->first = encoding->code_first; |
- cmap->count = (FT_UInt)( encoding->code_last - cmap->first ); |
+ cmap->first = (FT_UInt)encoding->code_first; |
+ cmap->count = (FT_UInt)encoding->code_last - cmap->first; |
cmap->indices = encoding->char_index; |
FT_ASSERT( cmap->indices != NULL ); |
@@ -295,7 +295,7 @@ |
return psnames->unicodes_init( memory, |
unicodes, |
- face->type1.num_glyphs, |
+ (FT_UInt)face->type1.num_glyphs, |
(PS_GetGlyphNameFunc)&psaux_get_glyph_name, |
(PS_FreeGlyphNameFunc)NULL, |
(FT_Pointer)face ); |