summaryrefslogtreecommitdiff
path: root/xs.h
diff options
context:
space:
mode:
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)
int n;
for (n = 0; n < size; n++) {
- hash ^= data[n];
+ hash ^= (unsigned char)data[n];
hash *= 111111111;
}