From a037d3815f6f4ad10bdf8ea52aafb80ad6e8a55f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 26 Feb 2025 12:05:12 -0700 Subject: [PATCH] [vector] Fix operator = --- src/hb-vector.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 5eb02bc8e..0e01d010f 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -161,6 +161,7 @@ struct hb_vector_t alloc_exact (o.length); if (unlikely (in_error ())) return *this; + length = 0; copy_array (o.as_array ()); return *this;