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:
parent
b027cb518d
commit
b87cf6e8d4
@ -76,7 +76,7 @@ struct hb_aat_map_builder_t
|
||||
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user