[subset] remove unnessecary brackets.

This commit is contained in:
Garret Rieger 2021-05-26 14:22:21 -07:00 committed by Behdad Esfahbod
parent 583237299d
commit 466e1fdf5d
1 changed files with 3 additions and 1 deletions

View File

@ -741,6 +741,8 @@ struct hb_set_t
} }
bool next (hb_codepoint_t *codepoint) const bool next (hb_codepoint_t *codepoint) const
{ {
// TODO: this should be merged with prev() as both implementations
// are very similar.
if (unlikely (*codepoint == INVALID)) { if (unlikely (*codepoint == INVALID)) {
*codepoint = get_min (); *codepoint = get_min ();
return *codepoint != INVALID; return *codepoint != INVALID;
@ -750,7 +752,7 @@ struct hb_set_t
unsigned int major = get_major (*codepoint); unsigned int major = get_major (*codepoint);
unsigned int i = last_page_lookup; unsigned int i = last_page_lookup;
if (unlikely (i >= page_map.length || (page_map_array[i]).major != major)) if (unlikely (i >= page_map.length || page_map_array[i].major != major))
{ {
page_map.bfind (major, &i, HB_BFIND_NOT_FOUND_STORE_CLOSEST); page_map.bfind (major, &i, HB_BFIND_NOT_FOUND_STORE_CLOSEST);
if (i >= page_map.length) { if (i >= page_map.length) {