diff --git a/src/hb-ot-color-colr-table.hh b/src/hb-ot-color-colr-table.hh index 01d703778..9f8b9375e 100644 --- a/src/hb-ot-color-colr-table.hh +++ b/src/hb-ot-color-colr-table.hh @@ -80,8 +80,8 @@ struct COLR { TRACE_SANITIZE (this); if (!(c->check_struct (this) && - c->check_array ((const void*) &layerRecordsOffsetZ, sizeof (LayerRecord), numLayerRecords) && - c->check_array ((const void*) &baseGlyphRecordsZ, sizeof (BaseGlyphRecord), numBaseGlyphRecords))) + c->check_array (&(this+layerRecordsOffsetZ), sizeof (LayerRecord), numLayerRecords) && + c->check_array (&(this+baseGlyphRecordsZ), sizeof (BaseGlyphRecord), numBaseGlyphRecords))) return_trace (false); const BaseGlyphRecord* base_glyph_records = &baseGlyphRecordsZ (this);