mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[VarComposite] Minor micro-optimize
This commit is contained in:
1 parent
ecd0f859bd
commit
07be0b6878
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user