[VarComposite] Minor micro-optimize

This commit is contained in:
Behdad Esfahbod committed 2023-04-29 11:09:28 -06:00
1 parent ecd0f859bd
commit 07be0b6878
1 file changed
+1 -1
+1 -1
View File
@@ -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;