diff --git a/src/OT/glyf/VarCompositeGlyph.hh b/src/OT/glyf/VarCompositeGlyph.hh index 986bca95c..31eb89fa3 100644 --- a/src/OT/glyf/VarCompositeGlyph.hh +++ b/src/OT/glyf/VarCompositeGlyph.hh @@ -213,7 +213,7 @@ struct VarCompositeGlyphRecord points.alloc (points.length + num_points + 4); // For phantom points if (unlikely (!points.resize (points.length + num_points, false))) return false; - contour_point_t *rec_points = points.as_array ().sub_array (points.length - num_points).arrayZ; + contour_point_t *rec_points = points.arrayZ + (points.length - num_points); memset (rec_points, 0, num_points * sizeof (rec_points[0])); unsigned fl = flags;