mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
Fix cache implementation
This commit is contained in:
parent
ce47613889
commit
46617a4213
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue