diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 41d666ee6..adcc8d9eb 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -107,9 +107,6 @@ struct hb_vector_t void set_storage (Type *array, unsigned n) { - if (unlikely (in_error ())) - return; - assert (allocated == 0); assert (length == 0); @@ -557,12 +554,10 @@ struct hb_vector_t set_error (); return false; } - set_storage (arrayZ, size); if (initialize) - { - length = 0; grow_vector (size, hb_prioritize); - } + else + length = size; return true; } return resize_full ((int) size, initialize, true);