summaryrefslogtreecommitdiff
path: root/src/truetype/ttobjs.c
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2023-05-07 06:43:21 +0200
committerWerner Lemberg <wl@gnu.org>2023-05-07 14:59:50 +0200
commit3a85bf0b3f1da3b902b8f7643a309c64ebe019ad (patch)
tree47a045edcbce1ef7b8b3a5e34e485eb07b0e5af0 /src/truetype/ttobjs.c
parente245951c43c9d69cd6e508190bf00f29f47ccbc6 (diff)
downloadfreetype2-3a85bf0b3f1da3b902b8f7643a309c64ebe019ad.tar.gz
* src/truetype/*: Clean up interface.
Ensure that all driver functions use the signature of the service or driver. This avoids pointer mismatches, which are technically undefined behaviour. Recent compilers are more picky in catching them as part of Control Flow Integrity tests.
Diffstat (limited to 'src/truetype/ttobjs.c')
-rw-r--r--src/truetype/ttobjs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index 29d41da07..ce956c02c 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -581,7 +581,7 @@
FT_Bool result = FALSE;
TT_Face face = (TT_Face)ttface;
- FT_UInt asize;
+ FT_ULong asize;
FT_ULong i;
FT_ULong glyph_index = 0;
FT_UInt count = 0;
@@ -589,7 +589,7 @@
for( i = 0; i < face->num_locations; i++ )
{
- tt_face_get_location( face, i, &asize );
+ tt_face_get_location( ttface, i, &asize );
if ( asize > 0 )
{
count += 1;
@@ -854,7 +854,7 @@
face->cvt_program_size = 0;
#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
- tt_done_blend( face );
+ tt_done_blend( ttface );
face->blend = NULL;
#endif
}