shithub: freetype+ttf2subf

Download patch

ref: 3f0182afb279403a9c2830ce0ca98123f8d4dfc1
parent: 9c1aac00118440ed149effa931a31ea171687083
author: suzuki toshiya <[email protected]>
date: Fri Jul 31 20:32:13 EDT 2009

sfnt: Cast a character code to FT_UInt32 for LP64 system.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2009-07-31  suzuki toshiya <[email protected]>
 
+	sfnt: Cast a character code to FT_UInt32 for LP64 system.
+
+	* src/sfnt/ttcmap.c (tt_cmap4_init, tt_cmap4_next):
+	Insert the casts from unsigned long constant to
+	FT_UInt32.
+
+2009-07-31  suzuki toshiya <[email protected]>
+
 	sfnt: Extend TT_BDF->strings_size to FT_ULong for huge BDF.
 
 	* include/freetype/internal/tttypes.h: The type
--- a/src/sfnt/ttcmap.c
+++ b/src/sfnt/ttcmap.c
@@ -659,7 +659,7 @@
 
     p                  = table + 6;
     cmap->num_ranges   = FT_PEEK_USHORT( p ) >> 1;
-    cmap->cur_charcode = 0xFFFFFFFFUL;
+    cmap->cur_charcode = (FT_UInt32)0xFFFFFFFFUL;
     cmap->cur_gindex   = 0;
 
     return SFNT_Err_Ok;
@@ -799,7 +799,7 @@
     }
 
   Fail:
-    cmap->cur_charcode = 0xFFFFFFFFUL;
+    cmap->cur_charcode = (FT_UInt32)0xFFFFFFFFUL;
     cmap->cur_gindex   = 0;
   }