[map] Don't return INVALID from get() just because in_error
This commit is contained in:
parent
2578390773
commit
4099c66f70
|
@ -147,7 +147,6 @@ struct hb_map_t
|
||||||
}
|
}
|
||||||
inline hb_codepoint_t get (hb_codepoint_t key) const
|
inline hb_codepoint_t get (hb_codepoint_t key) const
|
||||||
{
|
{
|
||||||
if (unlikely (in_error)) return INVALID;
|
|
||||||
if (unlikely (!items)) return INVALID;
|
if (unlikely (!items)) return INVALID;
|
||||||
unsigned int i = bucket_for (key);
|
unsigned int i = bucket_for (key);
|
||||||
return items[i].key == key ? items[i].value : INVALID;
|
return items[i].key == key ? items[i].value : INVALID;
|
||||||
|
|
Loading…
Reference in New Issue