From 58dd3a1e6e555a8b829d529fef23da0e051bea75 Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Mon, 11 Sep 2017 17:25:40 +0900 Subject: [PATCH] insert explict cast to FT_Fixed when bitshifting for FT_Fixed value. note: long constant is too large for LP64 platforms. --- src/truetype/ttgload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index 5e102c615..1b94a2b24 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -771,8 +771,8 @@ /* completely refer to the (already) hinted subglyphs. */ if ( is_composite ) { - loader->exec->metrics.x_scale = 1 << 16; - loader->exec->metrics.y_scale = 1 << 16; + loader->exec->metrics.x_scale = (FT_Fixed)1 << 16; + loader->exec->metrics.y_scale = (FT_Fixed)1 << 16; FT_ARRAY_COPY( zone->orus, zone->cur, zone->n_points ); }