[set] Allow starting iteration from a non-member of the set

This commit is contained in:
Behdad Esfahbod 2018-02-13 23:51:45 -08:00
parent a989f3edec
commit fe3bc524bd
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ struct hb_set_t
page_map_t map = {get_major (*codepoint), 0};
unsigned int i;
page_map.bfind (map, &i);
if (i < page_map.len)
if (i < page_map.len && page_map[i].major == map.major)
{
if (pages[page_map[i].index].next (codepoint))
{