Return early if mask is 0
This commit is contained in:
parent
5c1c8c9c50
commit
3506b2e78d
|
@ -478,6 +478,9 @@ _hb_buffer_add_masks (hb_buffer_t *buffer,
|
||||||
hb_mask_t not_mask = ~mask;
|
hb_mask_t not_mask = ~mask;
|
||||||
value &= mask;
|
value &= mask;
|
||||||
|
|
||||||
|
if (!mask)
|
||||||
|
return;
|
||||||
|
|
||||||
if (cluster_start == 0 && cluster_end == (unsigned int)-1) {
|
if (cluster_start == 0 && cluster_end == (unsigned int)-1) {
|
||||||
unsigned int count = buffer->len;
|
unsigned int count = buffer->len;
|
||||||
for (unsigned int i = 0; i < count; i++)
|
for (unsigned int i = 0; i < count; i++)
|
||||||
|
|
Loading…
Reference in New Issue