Fix an infinite loop in FcBlanksIsMember()

This commit is contained in:
Akira TAGOH 2015-03-09 12:18:03 +09:00
parent 484834c186
commit f5b1e0ab97
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ FcBlanksIsMember (FcBlanks *b, FcChar32 ucs4)
middle = (lower + higher) / 2;
if (b->blanks[middle] == ucs4)
return FcTrue;
if (lower == higher)
if (lower >= higher)
break;
if (b->blanks[middle] < ucs4)
lower = middle + 1;