[gvar] Minor use array get_size()

This commit is contained in:
Behdad Esfahbod 2022-12-04 12:44:09 -07:00
parent 1bd386515c
commit 0545949f01
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ struct gvar
if (unlikely (!y_deltas.resize (num_deltas, false))) return false; if (unlikely (!y_deltas.resize (num_deltas, false))) return false;
if (unlikely (!GlyphVariationData::unpack_deltas (p, y_deltas, end))) 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; unsigned ref_points = 0;
if (scalar != 1.0f) if (scalar != 1.0f)