summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-27 08:28:14 +0200
committerdefault <nobody@localhost>2024-05-27 08:28:14 +0200
commit5bc2017ba065337dd15aa280ca0a43855b7b507b (patch)
treef259aa53dff2dd847fd910cc9e703893ffedfbbd
parent36764b8ade5ee4686b04acb251f586eec4dacfad (diff)
Backport from xs.
-rw-r--r--xs.h2
-rw-r--r--xs_version.h2
2 files changed, 2 insertions, 2 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)
int n;
for (n = 0; n < size; n++) {
- hash ^= data[n];
+ hash ^= (unsigned char)data[n];
hash *= 111111111;
}
diff --git a/xs_version.h b/xs_version.h
index 2e86334..62f2aca 100644
--- a/xs_version.h
+++ b/xs_version.h
@@ -1 +1 @@
-/* e148ab08d5a55ac7bd30ff900f5eb048a57e21af 2024-05-27T05:33:01+02:00 */
+/* efb85fa3768a86f1609c520f0c86e8f87239b695 2024-05-27T08:24:40+02:00 */