diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2021-10-06 22:47:46 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2021-10-06 22:47:46 -0400 |
commit | 19ea07683f257ff35ed1515676086be3ebe514d9 (patch) | |
tree | a7dffae35a12b03dfd83325f66c41651be48b6ce /src/psaux/psft.c | |
parent | 0f23ae2e80309d199ea6fea55691fa2d74bfed60 (diff) | |
download | freetype2-19ea07683f257ff35ed1515676086be3ebe514d9.tar.gz |
Signedness revisions.unsigned-revisions
This eliminates explicit casting by switching to unsigned variables.
The revised variables are frequently used together.
* include/freetype/fttypes.h (FT_Data): Change to unsigned `length`.
* include/freetype/internal/tttypes.h (TT_LoaderRec): Change to unsigned
`byte_len`.
* include/freetype/t1tables.h (CID_FaceInfoRec): Change to unsigned
`gd_bytes` and `gd_bytes`.
* src/cff/cffgload.c (cff_get_glyph_data, cff_free_glyph_data):
Updated.
* src/cid/cidgload.c (cid_load_glyph): Updated.
* src/cid/cidload.h (cid_get_offset): Update argument.
* src/cid/cidload.c (cid_get_offset, cid_face_open): Updated.
* src/psaux/psft.c (cf2_getT1SeacComponent): Updated.
* src/truetype/ttgload.c (TT_Process_Composite_Glyph,
load_truetype_glyph): Updated.
Diffstat (limited to 'src/psaux/psft.c')
-rw-r--r-- | src/psaux/psft.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/psaux/psft.c b/src/psaux/psft.c index 41c16542c..ac72d8259 100644 --- a/src/psaux/psft.c +++ b/src/psaux/psft.c @@ -742,13 +742,13 @@ /* For ordinary fonts get the character data stored in the face record. */ { glyph_data.pointer = type1->charstrings[glyph_index]; - glyph_data.length = (FT_Int)type1->charstrings_len[glyph_index]; + glyph_data.length = type1->charstrings_len[glyph_index]; } if ( !error ) { FT_Byte* charstring_base = (FT_Byte*)glyph_data.pointer; - FT_ULong charstring_len = (FT_ULong)glyph_data.length; + FT_ULong charstring_len = glyph_data.length; FT_ASSERT( charstring_base + charstring_len >= charstring_base ); @@ -778,7 +778,7 @@ face = (T1_Face)decoder->builder.face; data.pointer = buf->start; - data.length = (FT_Int)( buf->end - buf->start ); + data.length = (FT_UInt)( buf->end - buf->start ); if ( face->root.internal->incremental_interface ) face->root.internal->incremental_interface->funcs->free_glyph_data( |