diff options
author | suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> | 2017-09-11 17:25:40 +0900 |
---|---|---|
committer | suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> | 2017-09-13 17:11:11 +0900 |
commit | 58dd3a1e6e555a8b829d529fef23da0e051bea75 (patch) | |
tree | ee5478c8fb19fc5e9589073cd4161518fa8b6855 | |
parent | 776ff19d6437c25ba1bd4954d6a8a827e6419ceb (diff) | |
download | freetype2-58dd3a1e6e555a8b829d529fef23da0e051bea75.tar.gz |
insert explict cast to FT_Fixed when bitshifting for FT_Fixed value.
note: long constant is too large for LP64 platforms.
-rw-r--r-- | src/truetype/ttgload.c | 4 |
1 files 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 ); } |