projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2578390
)
[map] Don't return INVALID from get() just because in_error
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 30 May 2018 00:52:07 +0000
(17:52 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 30 May 2018 00:52:07 +0000
(17:52 -0700)
src/hb-map-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-map-private.hh
b/src/hb-map-private.hh
index
0db060c
..
a9c8379
100644
(file)
--- 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;