[HarfBuzz] static_assertion failure in latest harfbuzz-ng code

Behdad Esfahbod behdad at behdad.org
Sun Apr 25 19:50:01 PDT 2010


On 04/24/2010 07:30 AM, Jonathan Kew wrote:
> On 24 Apr 2010, at 00:54, Behdad Esfahbod wrote:
> 
>>
>> -  Tag		tag;		/* 4-byte identifier. */
>> +  private:
>> +  union {
>> +  Tag			tag;		/* 4-byte identifier. */
>> +  OpenTypeFontFace	fontFace[VAR];
>> +  TTCHeader		ttcHeader[VAR];
>> +  } u;
>> };
>> ASSERT_SIZE (OpenTypeFontFile, 4);
> 
> This ASSERT_SIZE is no longer correct, as the OpenTypeFontFace member of the union is considerably bigger.

Thanks Jonathan.  This build breakage convinced me to drop the codepath using
gcc extensions for zero-sized arrays on Linux.  So it should never happen in
the future.

behdad



More information about the HarfBuzz mailing list