diff options
Diffstat (limited to 'simclist-1.5')
| -rw-r--r-- | simclist-1.5/simclist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simclist-1.5/simclist.c b/simclist-1.5/simclist.c index edae4bb..0c34786 100644 --- a/simclist-1.5/simclist.c +++ b/simclist-1.5/simclist.c @@ -1430,8 +1430,8 @@ list_hash_t list_hashcomputer_string(const void *el) { char plus; for (l = 0; str[l] != '\0'; l++) { - if (l) plus = hash ^ str[l]; - else plus = hash ^ (str[l] - str[0]); + if (l) plus = (char)(hash ^ str[l]); + else plus = (char)(hash ^ (str[l] - str[0])); hash += (plus << (CHAR_BIT * (l % sizeof(list_hash_t)))); } |
