This commit is contained in:
Kovid Goyal 2024-12-16 20:40:15 +05:30
parent b7e8d6d103
commit b602915d5b
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -14,7 +14,7 @@
static inline uint64_t
vt_hash_bytes(const void *data, const size_t size) {
uint64_t hash = 0xcbf29ce484222325ull;
for (size_t i = 0; i < size; i++) hash = ( ((unsigned char*)data)[i] ^ hash ) * 0x100000001b3ull;
for (size_t i = 0; i < size; i++) hash = ( (uint64_t)(((unsigned char*)data)[i] ^ hash )) * 0x100000001b3ull;
return hash;
}