summaryrefslogtreecommitdiff
path: root/simclist-1.5/simclist.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-08-09 08:33:08 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-08-09 08:33:08 +0200
commit5d34aff5888d3f0c624251f15bedb96c347978d6 (patch)
tree69a49651271d645ca7eaa114cb1830bf759c0930 /simclist-1.5/simclist.c
parentb94a7ae06b20d550c727d5192cea8baf3e8fb641 (diff)
refactors
Diffstat (limited to 'simclist-1.5/simclist.c')
-rw-r--r--simclist-1.5/simclist.c4
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))));
}