Fix cache implementation

This commit is contained in:
Behdad Esfahbod 2012-06-09 01:18:58 -04:00
parent ce47613889
commit 46617a4213
1 changed files with 2 additions and 0 deletions

View File

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