ref: cad4f915555f1eb190753da9b4b8bd58130e4739
parent: 2f07c57f5ab9649d7a2c76bc635291df2c4af0d1
author: suzuki toshiya <[email protected]>
date: Fri Jul 31 20:32:23 EDT 2009
sfnt: Insert explicit cast for LP64 system.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2009-07-31 suzuki toshiya <[email protected]>
+ 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 <[email protected]>
+
gxvalid: Guarantee `just' table size upto 32-bit.
* src/gxvalid/gxvjust.c (gxv_just_validate):
--- 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 )