Fix sense of comparsion in hb_aat_map_builder_t::feature_info_t.

This makes bsearch actually work for the features array.

Fixes #2305.
This commit is contained in:
Jonathan Kew 2020-04-03 15:02:07 +01:00 committed by Ebrahim Byagowi
parent b027cb518d
commit b87cf6e8d4
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ struct hb_aat_map_builder_t
int cmp (hb_aat_layout_feature_type_t ty) const int cmp (hb_aat_layout_feature_type_t ty) const
{ {
return (type != ty) ? (type < ty ? -1 : 1) : 0; return (ty != type) ? (ty < type ? -1 : 1) : 0;
} }
}; };