From 75101802a169b48a69a82f64e49169d810ded741 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 29 Jun 2023 10:54:49 -0600 Subject: [PATCH] [CompositeGlyph] Micro-optimize --- src/OT/glyf/CompositeGlyph.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OT/glyf/CompositeGlyph.hh b/src/OT/glyf/CompositeGlyph.hh index 057e68d69..4dc528c14 100644 --- a/src/OT/glyf/CompositeGlyph.hh +++ b/src/OT/glyf/CompositeGlyph.hh @@ -132,7 +132,7 @@ struct CompositeGlyphRecord contour_point_t trans; get_transformation (matrix, trans); points.alloc (points.length + 4); // For phantom points - if (unlikely (!points.resize (points.length + 1))) return false; + if (unlikely (!points.resize (points.length + 1, false))) return false; points.arrayZ[points.length - 1] = trans; return true; }