[cache] Minor use a range for loop

This commit is contained in:
Behdad Esfahbod 2023-06-29 12:44:34 -06:00
parent afae537c3c
commit 7aba1e6dd2

View file

@ -66,8 +66,8 @@ struct hb_cache_t
void clear ()
{
for (unsigned i = 0; i < ARRAY_LENGTH (values); i++)
values[i] = -1;
for (auto &v : values)
v = -1;
}
bool get (unsigned int key, unsigned int *value) const