# HG changeset patch # User Mike Becker # Date 1730214517 -3600 # Node ID c2ba65ea8d318df6671c429a048baefcb2f7cc08 # Parent 036b431e70eebcd674fbc1a6aca09da226e1bab9 add cast from size_t to unsigned to avoid warnings from certain compilers diff -r 036b431e70ee -r c2ba65ea8d31 src/hash_key.c --- a/src/hash_key.c Tue Oct 29 16:01:10 2024 +0100 +++ b/src/hash_key.c Tue Oct 29 16:08:37 2024 +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;