[vector] Fix remove() implementation

test-vector under valgrind happy now.
This commit is contained in:
Behdad Esfahbod 2022-05-19 15:52:00 -06:00
parent 3bd755c32d
commit a47b0aebf5
1 changed files with 1 additions and 1 deletions

View File

@ -392,8 +392,8 @@ struct hb_vector_t : std::conditional<sorted, hb_vector_t<Type, false>, hb_empty
{
if (unlikely (i >= length))
return;
arrayZ[i].~Type ();
shift_down_vector (i + 1);
arrayZ[length - 1].~Type ();
length--;
}