ucx/hash_key.c

changeset 440
7c4b9cba09ca
parent 324
ce13a778654a
--- a/ucx/hash_key.c	Sun Jan 05 17:41:39 2025 +0100
+++ b/ucx/hash_key.c	Sun Jan 05 22:00:39 2025 +0100
@@ -40,7 +40,7 @@
 
     unsigned m = 0x5bd1e995;
     unsigned r = 24;
-    unsigned h = 25 ^ len;
+    unsigned h = 25 ^ (unsigned) len;
     unsigned i = 0;
     while (len >= 4) {
         unsigned k = data[i + 0] & 0xFF;

mercurial