From f3bb3f19c917e3fd0a0cdd9a2adf8f827e7a5838 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 21 Aug 2013 14:31:55 -0400 Subject: [PATCH] Fix assertion Apparently some AIX versions have 64bit pointers yet 32bit double alignment. Fix assertion. --- src/fcarch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fcarch.c b/src/fcarch.c index 35734c0..21516ff 100644 --- a/src/fcarch.c +++ b/src/fcarch.c @@ -49,7 +49,7 @@ FC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcStrSet *)); FC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcCharLeaf **)); FC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcChar16 *)); -FC_ASSERT_STATIC (0x08 + 1*FC_MAX(4,ALIGNOF_DOUBLE) == sizeof (FcValue)); +FC_ASSERT_STATIC (0x08 + 1*FC_MAX(SIZEOF_VOID_P,ALIGNOF_DOUBLE) == sizeof (FcValue)); FC_ASSERT_STATIC (0x00 + 2*SIZEOF_VOID_P == sizeof (FcPatternElt)); FC_ASSERT_STATIC (0x08 + 2*SIZEOF_VOID_P == sizeof (FcPattern)); FC_ASSERT_STATIC (0x08 + 2*SIZEOF_VOID_P == sizeof (FcCharSet));