Return early if mask is 0

This commit is contained in:
Behdad Esfahbod 2010-10-13 15:38:52 -04:00
parent 5c1c8c9c50
commit 3506b2e78d
1 changed files with 3 additions and 0 deletions

View File

@ -478,6 +478,9 @@ _hb_buffer_add_masks (hb_buffer_t *buffer,
hb_mask_t not_mask = ~mask;
value &= mask;
if (!mask)
return;
if (cluster_start == 0 && cluster_end == (unsigned int)-1) {
unsigned int count = buffer->len;
for (unsigned int i = 0; i < count; i++)