commit | 0ea42e117ba2c76e118974fe114ae5d9ceef5743 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <[email protected]> | Tue Sep 11 12:22:42 2018 +0200 |
committer | Behdad Esfahbod <[email protected]> | Tue Sep 11 12:22:42 2018 +0200 |
tree | 357456a26e9175d3c7c851210eaecd50fc313757 | |
parent | 0f520adaacca3c7b6d8e84a7722343184105f612 [diff] [blame] |
[cache] Minor
diff --git a/src/hb-cache.hh b/src/hb-cache.hh index fd6a01e..0858e11 100644 --- a/src/hb-cache.hh +++ b/src/hb-cache.hh
@@ -44,7 +44,7 @@ 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 ();