From 4099c66f70e1acf89013215ab3add42b11e31fea Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 29 May 2018 17:52:07 -0700 Subject: [PATCH] [map] Don't return INVALID from get() just because in_error --- src/hb-map-private.hh | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hb-map-private.hh b/src/hb-map-private.hh index 0db060c4e..a9c8379e1 100644 --- a/src/hb-map-private.hh +++ b/src/hb-map-private.hh @@ -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;