From dd860fad80b85f8bc03dd53373cff4f092c32447 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 27 Apr 2023 11:24:48 -0600 Subject: [PATCH] [VarComposite] Micro-optimize --- src/OT/glyf/VarCompositeGlyph.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/OT/glyf/VarCompositeGlyph.hh b/src/OT/glyf/VarCompositeGlyph.hh index acdde3f24..2ff0289d3 100644 --- a/src/OT/glyf/VarCompositeGlyph.hh +++ b/src/OT/glyf/VarCompositeGlyph.hh @@ -193,7 +193,7 @@ struct VarCompositeGlyphRecord (flags & GID_IS_24BIT ? 3 : 2) + &StructAfter (numAxes)); - hb_array_t rec_points = points.as_array ().sub_array (points.length - num_points); + contour_point_t *rec_points = points.as_array ().sub_array (points.length - num_points).arrayZ; unsigned count = numAxes; if (flags & AXES_HAVE_VARIATION) @@ -249,7 +249,6 @@ struct VarCompositeGlyphRecord rec_points[0].y = tCenterY; rec_points++; } - assert (!rec_points); return true; }