[Fontconfig] fontconfig 2.10 and alignof(double) on AIX

Behdad Esfahbod behdad at behdad.org
Tue Aug 20 22:45:12 PDT 2013


On 13-08-21 12:44 AM, Albert Chin wrote:
> On AIX 32-bit and 64-bit, alignof(double) == 4. This isn't a problem
> for 32-bit builds of fontconfig but for 64-bit builds, the following
> assert in src/fcarch.c fails:
>   FC_ASSERT_STATIC (0x08 + 1*FC_MAX(4,ALIGNOF_DOUBLE) == sizeof (FcValue));

So, what *is* sizeof(FcValue)?  If alignof(double) is 4, double itself is 8,
and enum is 4, then sizeof(FcValue) should be 12 which is exactly what the
assertion is trying to ensure.

-- 
behdad
http://behdad.org/


More information about the Fontconfig mailing list