summaryrefslogtreecommitdiff
path: root/xs.h
diff options
context:
space:
mode:
authorGravatar default2024-05-27 08:28:14 +0200
committerGravatar default2024-05-27 08:28:14 +0200
commit5bc2017ba065337dd15aa280ca0a43855b7b507b (patch)
treef259aa53dff2dd847fd910cc9e703893ffedfbbd /xs.h
parentMinor tweak to markdown-like links. (diff)
downloadsnac2-5bc2017ba065337dd15aa280ca0a43855b7b507b.tar.gz
snac2-5bc2017ba065337dd15aa280ca0a43855b7b507b.tar.xz
snac2-5bc2017ba065337dd15aa280ca0a43855b7b507b.zip
Backport from xs.
Diffstat (limited to 'xs.h')
-rw-r--r--xs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs.h b/xs.h
index 56771e1..8e04c99 100644
--- a/xs.h
+++ b/xs.h
@@ -1322,7 +1322,7 @@ unsigned int xs_hash_func(const char *data, int size)
1322 int n; 1322 int n;
1323 1323
1324 for (n = 0; n < size; n++) { 1324 for (n = 0; n < size; n++) {
1325 hash ^= data[n]; 1325 hash ^= (unsigned char)data[n];
1326 hash *= 111111111; 1326 hash *= 111111111;
1327 } 1327 }
1328 1328