From 8938185a808783cf636df2179ac0012240a8ff36 Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Mon, 11 Sep 2017 15:54:54 +0900 Subject: [PATCH] cast 16bit values in the enumarator to signed short, to fit 16bit platforms. --- src/truetype/ttgxvar.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/truetype/ttgxvar.h b/src/truetype/ttgxvar.h index 7e81719a3..57506303a 100644 --- a/src/truetype/ttgxvar.h +++ b/src/truetype/ttgxvar.h @@ -344,7 +344,11 @@ FT_BEGIN_HEADER /* */ typedef enum GX_TupleCountFlags_ { +#if FT_UINT_MAX > 0xFFFFUL GX_TC_TUPLES_SHARE_POINT_NUMBERS = 0x8000, +#else + GX_TC_TUPLES_SHARE_POINT_NUMBERS = (FT_Short)0x8000, +#endif GX_TC_RESERVED_TUPLE_FLAGS = 0x7000, GX_TC_TUPLE_COUNT_MASK = 0x0FFF @@ -362,7 +366,11 @@ FT_BEGIN_HEADER /* */ typedef enum GX_TupleIndexFlags_ { +#if FT_UINT_MAX > 0xFFFFUL GX_TI_EMBEDDED_TUPLE_COORD = 0x8000, +#else + GX_TI_EMBEDDED_TUPLE_COORD = (FT_Short)0x8000, +#endif GX_TI_INTERMEDIATE_TUPLE = 0x4000, GX_TI_PRIVATE_POINT_NUMBERS = 0x2000, GX_TI_RESERVED_TUPLE_FLAG = 0x1000,