mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[gvar] Micro-optimize
This commit is contained in:
1 parent
db86e977a0
commit
a200f0a3fe
1 file changed
+2
-1
@@ -329,8 +329,9 @@ struct gvar
|
||||
|
||||
if (!deltas)
|
||||
{
|
||||
if (unlikely (!deltas_vec.resize (points.length))) return false;
|
||||
if (unlikely (!deltas_vec.resize (points.length, false))) return false;
|
||||
deltas = deltas_vec.as_array ();
|
||||
hb_memset (deltas.arrayZ, 0, deltas.get_size ()); // Faster than vector resize
|
||||
}
|
||||
|
||||
const HBUINT8 *end = p + length;
|
||||
|
||||
Reference in new issue
Block a user