[cache] Minor
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 11 Sep 2018 10:22:42 +0000 (12:22 +0200)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 11 Sep 2018 10:22:42 +0000 (12:22 +0200)
src/hb-cache.hh

index fd6a01e..0858e11 100644 (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 ();