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); }