Optimize intersects_array to fix fuzzer timeout.
This commit is contained in:
parent
be5cdcdfa2
commit
95ab110cd9
|
@ -712,11 +712,11 @@ static inline bool intersects_array (const hb_set_t *glyphs,
|
||||||
intersects_func_t intersects_func,
|
intersects_func_t intersects_func,
|
||||||
const void *intersects_data)
|
const void *intersects_data)
|
||||||
{
|
{
|
||||||
return
|
for (const HBUINT16 &_ : + hb_iter (values, count))
|
||||||
+ hb_iter (values, count)
|
{
|
||||||
| hb_map ([&] (const HBUINT16 &_) { return intersects_func (glyphs, _, intersects_data); })
|
if (intersects_func (glyphs, _, intersects_data)) return true;
|
||||||
| hb_any
|
}
|
||||||
;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue