From c9ca3aa7400dfb291d0d85e5053f9701be765145 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 10 Aug 2020 10:58:09 +0200 Subject: Minor --- stc/cmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stc/cmap.h b/stc/cmap.h index dfb845a2..a984c711 100644 --- a/stc/cmap.h +++ b/stc/cmap.h @@ -389,7 +389,7 @@ STC_API uint32_t c_default_hash(const void *data, size_t len) { /* https://probablydance.com/2018/06/16/fibonacci-hashing-the-optimization-that-the-world-forgot-or-a-better-alternative-to-integer-modulo/ */ STC_API uint32_t c_default_hash32(const void* data, size_t len) { const volatile uint32_t *key = (const uint32_t *) data; - uint32_t x = *key++ * 2654435769u; + uint64_t x = *key++ * 2654435769u; while (len -= 4) x ^= *key++ * 2654435769u; return x; } -- cgit v1.2.3