From 0545949f018cf48743052de878bfabbb95b4d1d6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 4 Dec 2022 12:44:09 -0700 Subject: [PATCH] [gvar] Minor use array get_size() --- src/hb-ot-var-gvar-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-var-gvar-table.hh b/src/hb-ot-var-gvar-table.hh index 72ef72762..c23e1f74b 100644 --- a/src/hb-ot-var-gvar-table.hh +++ b/src/hb-ot-var-gvar-table.hh @@ -609,7 +609,7 @@ struct gvar if (unlikely (!y_deltas.resize (num_deltas, false))) return false; if (unlikely (!GlyphVariationData::unpack_deltas (p, y_deltas, end))) return false; - hb_memset (deltas.arrayZ, 0, deltas.length * sizeof (deltas.arrayZ[0])); + hb_memset (deltas.arrayZ, 0, deltas.get_size ()); unsigned ref_points = 0; if (scalar != 1.0f)