cache: Insert explict casts for LP64 systems.

This commit is contained in:
suzuki toshiya 2009-07-03 18:01:31 +09:00
parent 2bb188d0f2
commit 9ba196935a
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,13 @@
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cache: Insert explict casts for LP64 systems.
* src/cache/ftcbasic.c (FTC_ImageCache_Lookup,
FTC_SBitCache_Lookup): The type of FTC_ImageType->width
is FT_Int, so the cast to unsigned larger type FT_ULong
is introduced for the comparisons with 0x10000L for
LP64 platform.
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cache: Fix some data types mismatching with their sources.

View File

@ -334,7 +334,7 @@
* This one is a major hack used to detect whether we are passed a
* regular FTC_ImageType handle, or a legacy FTC_OldImageDesc one.
*/
if ( type->width >= 0x10000 )
if ( (FT_ULong)type->width >= 0x10000L )
{
FTC_OldImageDesc desc = (FTC_OldImageDesc)type;
@ -656,7 +656,7 @@
/* This one is a major hack used to detect whether we are passed a
* regular FTC_ImageType handle, or a legacy FTC_OldImageDesc one.
*/
if ( type->width >= 0x10000 )
if ( (FT_ULong)type->width >= 0x10000L )
{
FTC_OldImageDesc desc = (FTC_OldImageDesc)type;