mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 09:21:06 +01:00
Minor
This commit is contained in:
1 parent
e88e14421a
commit
fe3dabc08d
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user