mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
Fix cache implementation
This commit is contained in:
1 parent
ce47613889
commit
46617a4213
1 file changed
+2
@@ -49,6 +49,8 @@ struct hb_cache_t
|
||||
unsigned int v = values[k];
|
||||
if ((v >> value_bits) != (key >> cache_bits))
|
||||
return false;
|
||||
*value = v & ((1<<value_bits)-1);
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool set (unsigned int key, unsigned int value)
|
||||
|
||||
Reference in new issue
Block a user