[vector] Minor use get_size() in as_bytes()

This commit is contained in:
Behdad Esfahbod 2022-12-01 14:32:13 -07:00
parent 0b826368fd
commit a66de336fb
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ struct hb_vector_t
} }
hb_bytes_t as_bytes () const 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 as_array () == o.as_array (); }
bool operator != (const hb_vector_t &o) const { return !(*this == o); } bool operator != (const hb_vector_t &o) const { return !(*this == o); }