[map] Don't return INVALID from get() just because in_error

This commit is contained in:
Behdad Esfahbod 2018-05-29 17:52:07 -07:00
parent 2578390773
commit 4099c66f70

View File

@ -147,7 +147,6 @@ struct hb_map_t
}
inline hb_codepoint_t get (hb_codepoint_t key) const
{
if (unlikely (in_error)) return INVALID;
if (unlikely (!items)) return INVALID;
unsigned int i = bucket_for (key);
return items[i].key == key ? items[i].value : INVALID;