From fe3bc524bd4f93bd67c13ed402720a13dd3484d3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 13 Feb 2018 23:51:45 -0800 Subject: [PATCH] [set] Allow starting iteration from a non-member of the set --- src/hb-set-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-set-private.hh b/src/hb-set-private.hh index d71d4122..45963487 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)) { -- GitLab