From 793c012635f8406c8370266442d3443ab6287067 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Wed, 27 Oct 2021 22:36:11 -0400 Subject: [PATCH] [woff] Optimize table tagging. * include/freetype/internal/wofftypes.h (WOFF_TableRec): Use 32-bit tag. * src/sfnt/sfwoff.c (woff_open_font): Use 32-bit tag. --- include/freetype/internal/wofftypes.h | 2 +- src/sfnt/sfwoff.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/freetype/internal/wofftypes.h b/include/freetype/internal/wofftypes.h index 217e7992d..c460107c4 100644 --- a/include/freetype/internal/wofftypes.h +++ b/include/freetype/internal/wofftypes.h @@ -92,7 +92,7 @@ FT_BEGIN_HEADER */ typedef struct WOFF_TableRec_ { - FT_ULong Tag; /* table ID */ + FT_Tag Tag; /* table ID */ FT_ULong Offset; /* table file offset */ FT_ULong CompLength; /* compressed table length */ FT_ULong OrigLength; /* uncompressed table length */ diff --git a/src/sfnt/sfwoff.c b/src/sfnt/sfwoff.c index 44c926ed4..af14928e2 100644 --- a/src/sfnt/sfwoff.c +++ b/src/sfnt/sfwoff.c @@ -109,7 +109,7 @@ FT_ULong sfnt_offset; FT_Int nn; - FT_ULong old_tag = 0; + FT_Tag old_tag = 0; static const FT_Frame_Field woff_header_fields[] = {