提交 fe3dabc0 编写于 作者: B Behdad Esfahbod

Minor

上级 e88e1442
......@@ -416,7 +416,7 @@ void
hb_buffer_t::merge_clusters (unsigned int start,
unsigned int end)
{
if (unlikely (start >= end))
if (unlikely (end - start < 2))
return;
unsigned int cluster = info[start].cluster;
......@@ -444,7 +444,7 @@ void
hb_buffer_t::merge_out_clusters (unsigned int start,
unsigned int end)
{
if (unlikely (start >= end))
if (unlikely (end - start < 2))
return;
unsigned int cluster = out_info[start].cluster;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册