mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 17:01:17 +01:00
[cff2] Use exact-size vector allocation for blends
This commit is contained in:
1 parent
92e5933ee6
commit
3d4659beaa
1 file changed
+1
@@ -45,6 +45,7 @@ struct blend_arg_t : number_t
|
||||
numValues = numValues_;
|
||||
valueIndex = valueIndex_;
|
||||
unsigned numBlends = blends_.length;
|
||||
deltas.alloc (numBlends, true); /* Exact-size allocation. */
|
||||
if (unlikely (!deltas.resize (numBlends)))
|
||||
return;
|
||||
for (unsigned int i = 0; i < numBlends; i++)
|
||||
|
||||
Reference in new issue
Block a user