ucx/hash_key.c

changeset 101
7b3a3130be44
parent 49
2f71f4ee247a
--- a/ucx/hash_key.c	Thu Dec 12 20:01:43 2024 +0100
+++ b/ucx/hash_key.c	Mon Jan 06 22:22:55 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