diff options
author | default <nobody@localhost> | 2024-05-27 08:28:14 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-05-27 08:28:14 +0200 |
commit | 5bc2017ba065337dd15aa280ca0a43855b7b507b (patch) | |
tree | f259aa53dff2dd847fd910cc9e703893ffedfbbd /xs.h | |
parent | 36764b8ade5ee4686b04acb251f586eec4dacfad (diff) |
Backport from xs.
Diffstat (limited to 'xs.h')
-rw-r--r-- | xs.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |