diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-09 08:33:08 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-09 08:33:08 +0200 |
| commit | 5d34aff5888d3f0c624251f15bedb96c347978d6 (patch) | |
| tree | 69a49651271d645ca7eaa114cb1830bf759c0930 /simclist-1.5/simclist.c | |
| parent | b94a7ae06b20d550c727d5192cea8baf3e8fb641 (diff) | |
refactors
Diffstat (limited to 'simclist-1.5/simclist.c')
| -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)))); } |
