diff options
Diffstat (limited to 'src/util/hash_table.c')
-rw-r--r-- | src/util/hash_table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/hash_table.c b/src/util/hash_table.c index 1bda2149b95..b7421a0144c 100644 --- a/src/util/hash_table.c +++ b/src/util/hash_table.c @@ -476,9 +476,10 @@ _mesa_hash_data(const void *data, size_t size) /** FNV-1a string hash implementation */ uint32_t -_mesa_hash_string(const char *key) +_mesa_hash_string(const void *_key) { uint32_t hash = _mesa_fnv32_1a_offset_bias; + const char *key = _key; while (*key != 0) { hash = _mesa_fnv32_1a_accumulate(hash, *key); |