Commit cad4f915555f1eb190753da9b4b8bd58130e4739

suzuki toshiya 2009-08-01T00:32:23

sfnt: Insert explicit cast for LP64 system.

diff --git a/ChangeLog b/ChangeLog
index 107e831..ebf96a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-07-31  suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
 
+	sfnt: Insert explicit cast for LP64 system.
+
+	* src/sfnt/ttkern.c (tt_face_load_kern): Insert
+	cast from unsigned long to FT_UInt32.
+
+2009-07-31  suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
 	gxvalid: Guarantee `just' table size upto 32-bit.
 
 	* src/gxvalid/gxvjust.c (gxv_just_validate):
diff --git a/src/sfnt/ttkern.c b/src/sfnt/ttkern.c
index 0744b3f..e0d2ed8 100644
--- a/src/sfnt/ttkern.c
+++ b/src/sfnt/ttkern.c
@@ -87,7 +87,7 @@
     {
       FT_UInt    num_pairs, length, coverage;
       FT_Byte*   p_next;
-      FT_UInt32  mask = 1UL << nn;
+      FT_UInt32  mask = (FT_UInt32)1UL << nn;
 
 
       if ( p + 6 > p_limit )