mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[cache] Minor
This commit is contained in:
1 parent
0f520adaac
commit
0ea42e117b
1 file changed
+1
-1
+1
-1
@@ -44,7 +44,7 @@ struct hb_cache_t
|
||||
inline void clear (void)
|
||||
{ memset (values, 255, sizeof (values)); }
|
||||
|
||||
inline bool get (unsigned int key, unsigned int *value)
|
||||
inline bool get (unsigned int key, unsigned int *value) const
|
||||
{
|
||||
unsigned int k = key & ((1u<<cache_bits)-1);
|
||||
unsigned int v = values[k].get_relaxed ();
|
||||
|
||||
Reference in new issue
Block a user