freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master cbee985: [woff2] Don't use `FT_UInt64' (#56815).


From: Werner LEMBERG
Subject: [freetype2] master cbee985: [woff2] Don't use `FT_UInt64' (#56815).
Date: Tue, 27 Aug 2019 13:21:43 -0400 (EDT)

branch: master
commit cbee985a2bc14750ff850192f9ee8c1efe2bd7c7
Author: Dominik Röttsches <address@hidden>
Commit: Werner Lemberg <address@hidden>

    [woff2] Don't use `FT_UInt64' (#56815).
    
    * src/sfnt/sfwoff2.c (woff2_open_font): Use `FT_UInt32' for
    `file_offset'.  This fixes builds on platforms where `FT_LONG64' is
    not defined while still being sufficient to store a file offset.
---
 ChangeLog          | 8 ++++++++
 src/sfnt/sfwoff2.c | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 0412484..3904020 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-08-27  Dominik Röttsches  <address@hidden>
+
+       [woff2] Don't use `FT_UInt64' (#56815).
+
+       * src/sfnt/sfwoff2.c (woff2_open_font): Use `FT_UInt32' for
+       `file_offset'.  This fixes builds on platforms where `FT_LONG64' is
+       not defined while still being sufficient to store a file offset.
+
 2019-08-27  Werner Lemberg  <address@hidden>
 
        [truetype] Prevent crash in `TT_Set_Named_Instance' (#56813).
diff --git a/src/sfnt/sfwoff2.c b/src/sfnt/sfwoff2.c
index 6ee6887..a599ae5 100644
--- a/src/sfnt/sfwoff2.c
+++ b/src/sfnt/sfwoff2.c
@@ -1739,7 +1739,7 @@
 
     FT_UInt    glyf_index;
     FT_UInt    loca_index;
-    FT_UInt64  file_offset;
+    FT_UInt32  file_offset;
 
     FT_Byte*   sfnt        = NULL;
     FT_Stream  sfnt_stream = NULL;



reply via email to

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