diff --git a/src/hb-set-private.hh b/src/hb-set-private.hh index d71d41224be7e0baed8771eb0bddab8dc026ed74..459634872cead21ba9e87fb8839097fd1b7689fc 100644 --- a/src/hb-set-private.hh +++ b/src/hb-set-private.hh @@ -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)) {