mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[vector] Allocate exact size in operator=
This commit is contained in:
1 parent
449910d431
commit
55a7d81740
1 file changed
+1
-1
+1
-1
@@ -116,7 +116,7 @@ struct hb_vector_t
|
||||
hb_vector_t& operator = (const hb_vector_t &o)
|
||||
{
|
||||
reset ();
|
||||
alloc (o.length);
|
||||
alloc (o.length, true);
|
||||
if (unlikely (in_error ())) return *this;
|
||||
|
||||
copy_vector (o);
|
||||
|
||||
Reference in new issue
Block a user