assert (cff2->topDict + plan.offsets.topDictSize == c.head - c.start);
CFF2Subrs *dest = c.start_embed<CFF2Subrs> ();
if (unlikely (dest == nullptr)) return false;
- if (unlikely (!((Index<HBUINT32>*)dest)->serialize (&c, *acc.globalSubrs)))
+ Index<HBUINT32> *super = dest;
+ if (unlikely (!super->serialize (&c, *acc.globalSubrs)))
{
DEBUG_MSG (SUBSET, nullptr, "failed to serialize CFF2 global subrs");
return false;
DEBUG_MSG (SUBSET, nullptr, "CFF2 subset: local subrs unexpectedly null [%d]", i);
return false;
}
- if (unlikely (!((Index<HBUINT32>*)subrs)->serialize (&c, *acc.privateDicts[i].localSubrs)))
+ Index<HBUINT32> *super = subrs;
+ if (unlikely (!super->serialize (&c, *acc.privateDicts[i].localSubrs)))
{
DEBUG_MSG (SUBSET, nullptr, "failed to serialize CFF2 local subrs [%d]", i);
return false;