From 5d34aff5888d3f0c624251f15bedb96c347978d6 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 9 Aug 2025 08:33:08 +0200 Subject: refactors --- simclist-1.5/simclist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'simclist-1.5/simclist.c') 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)))); } -- cgit v1.2.3-70-g09d2