From b602915d5b387c16fedc681c35a8161ff591a196 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 16 Dec 2024 20:40:15 +0530 Subject: [PATCH] ... --- kitty/kitty-verstable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/kitty-verstable.h b/kitty/kitty-verstable.h index f64153b42..a637ae75c 100644 --- a/kitty/kitty-verstable.h +++ b/kitty/kitty-verstable.h @@ -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; }