From a66de336fb6c98f9946830194e6b28d0f3aaaef8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 1 Dec 2022 14:32:13 -0700 Subject: [PATCH] [vector] Minor use get_size() in as_bytes() --- src/hb-vector.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 8b50f7802..397571ae9 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -130,7 +130,7 @@ struct hb_vector_t } hb_bytes_t as_bytes () const - { return hb_bytes_t ((const char *) arrayZ, length * item_size); } + { return hb_bytes_t ((const char *) arrayZ, get_size ()); } bool operator == (const hb_vector_t &o) const { return as_array () == o.as_array (); } bool operator != (const hb_vector_t &o) const { return !(*this == o); }