summaryrefslogtreecommitdiff
path: root/xs.h
diff options
context:
space:
mode:
authorLouis Brauer <louis77@noreply.codeberg.org>2024-05-27 17:03:29 +0000
committerLouis Brauer <louis77@noreply.codeberg.org>2024-05-27 17:03:29 +0000
commit8be440b54563d850dae1d6f7185765fdff7747bd (patch)
tree1422e785df82908cfe3703042c4f1d825af8cffd /xs.h
parent26fbda787d0d5c8ba9259f79f4d2f937bd6c8ead (diff)
parent5bc2017ba065337dd15aa280ca0a43855b7b507b (diff)
Merge branch 'master' into master
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 e240ce7..4da0d6f 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;
}