sfnt: Insert explicit cast for LP64 system.

This commit is contained in:
suzuki toshiya 2009-07-03 18:01:39 +09:00
parent 3114e3cb18
commit 3fa528c45d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2009-07-03 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-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gxvalid: Guarantee `just' table size upto 32-bit.

View File

@ -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 )