freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] int-not32-changes-2017 58dd3a1 08/25: insert explict cast to


From: suzuki toshiya
Subject: [freetype2] int-not32-changes-2017 58dd3a1 08/25: insert explict cast to FT_Fixed when bitshifting for FT_Fixed value.
Date: Wed, 13 Sep 2017 04:15:04 -0400 (EDT)

branch: int-not32-changes-2017
commit 58dd3a1e6e555a8b829d529fef23da0e051bea75
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 );
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]