[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] RE: compiling FreeType library for 64 bit code
From: |
Henrik Grubbström |
Subject: |
Re: [Devel] RE: compiling FreeType library for 64 bit code |
Date: |
Mon, 28 Oct 2002 10:24:49 +0100 (MET) |
On Thu, 17 Oct 2002, Keith Trummel wrote:
> FYI,
>
> Changing line 186 in the file ftcache.h from
>
> #define FTC_FACE_ID_HASH( i ) ((FT_UInt32)(FT_Pointer)( i ))
>
> to be:
>
> #define FTC_FACE_ID_HASH( i ) ((FT_UInt32)((unsigned long) i & 0xffffffffL))
^^^^^^^^^^^^^
size_t is more likely to be an unsigned integer of the proper size.
Some 64 bit architectures (P64) have 32 bit longs (eg Windows/IA64).
> fixes the problem when producing 64 bit code both using Sun's C++ compiler
> and IBM's C++ compiler. Presumably, it also still keeps the hashing
> performance reasonable.
>
> Keith
--
Henrik Grubbström address@hidden
Roxen Internet Software AB