[cache] Minor

This commit is contained in:
Behdad Esfahbod 2018-09-11 12:22:42 +02:00
parent 0f520adaac
commit 0ea42e117b
1 changed files with 1 additions and 1 deletions

View File

@ -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 ();