mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
...
This commit is contained in:
parent
b7e8d6d103
commit
b602915d5b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue