[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] int-not32-changes-2017 d303054 07/23: insert explict cast to
From: |
suzuki toshiya |
Subject: |
[freetype2] int-not32-changes-2017 d303054 07/23: insert explict cast to FT_Fixed when bitshifting for FT_Fixed value. |
Date: |
Tue, 12 Sep 2017 22:13:34 -0400 (EDT) |
branch: int-not32-changes-2017
commit d3030545c7c2ff7212a19f45660838cfd9fe9b11
Author: suzuki toshiya <address@hidden>
Commit: suzuki toshiya <address@hidden>
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 5e102c6..1b94a2b 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 );
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] int-not32-changes-2017 d303054 07/23: insert explict cast to FT_Fixed when bitshifting for FT_Fixed value.,
suzuki toshiya <=