From cd269e206a2b5ed9018ef51cc54eeddedfb1689f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 23 Feb 2025 18:53:18 -0700 Subject: [PATCH] [hvgl] Micro-optimize vector resize --- src/hb-aat-var-hvgl-table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-aat-var-hvgl-table.cc b/src/hb-aat-var-hvgl-table.cc index c76e15114..c4096c6ca 100644 --- a/src/hb-aat-var-hvgl-table.cc +++ b/src/hb-aat-var-hvgl-table.cc @@ -119,7 +119,7 @@ PartShape::get_path_at (const struct hvgl &hvgl, if (le) { // Endianness matches; Faster to memcpy(). - v.resize (a.length); + v.resize (a.length, false); memcpy (v.arrayZ, a.arrayZ, v.length * sizeof (v[0])); } else