提交 3506b2e7 编写于 作者: B Behdad Esfahbod

Return early if mask is 0

上级 5c1c8c9c
......@@ -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++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册