freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] int-not32-changes-2017 1004da1 09/23: insert explict cast to


From: suzuki toshiya
Subject: [freetype2] int-not32-changes-2017 1004da1 09/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 1004da15884a1edad5b5b069b869e6d0b7dc056e
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/sfnt/sfobjs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 69bf0a5..70c9b9e 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -837,7 +837,7 @@
     {
       FT_TRACE3(( "sfnt_open_font: synthesize TTC\n" ));
 
-      face->ttc_header.version = 1 << 16;
+      face->ttc_header.version = (FT_Fixed)1 << 16;
       face->ttc_header.count   = 1;
 
       if ( FT_NEW( face->ttc_header.offsets ) )



reply via email to

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