summaryrefslogtreecommitdiff
path: root/src/psaux/t1cmap.c
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2015-02-25 11:20:20 +0100
committerWerner Lemberg <wl@gnu.org>2015-02-25 11:20:20 +0100
commit04c223703ac00876fbd1711c1937cb5c81d76b14 (patch)
tree1ce9be6b0cd37d26204978432a1aa784f64fa23c /src/psaux/t1cmap.c
parentd25ec16672f690dcbd04cdd303f7b5e62c8d959c (diff)
downloadfreetype2-04c223703ac00876fbd1711c1937cb5c81d76b14.tar.gz
[psaux] Signedness fixes.
* include/internal/psaux.h, src/psaux/afmparse.c, src/psaux/afmparse.h, src/psaux/psconv.c, src/psaux/psobjs.c, src/psaux/t1cmap.c, src/psaux/t1decode.c: Apply.
Diffstat (limited to 'src/psaux/t1cmap.c')
-rw-r--r--src/psaux/t1cmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/psaux/t1cmap.c b/src/psaux/t1cmap.c
index f9b5ea28d..2e2d433fc 100644
--- a/src/psaux/t1cmap.c
+++ b/src/psaux/t1cmap.c
@@ -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 );