Skip to content

Commit

Permalink
Fix hash algorithm
Browse files Browse the repository at this point in the history
Signed-off-by: Jacki <jacki@thejackimonster.de>
  • Loading branch information
TheJackiMonster authored and Hugobros3 committed Oct 14, 2024
1 parent e19e2e8 commit c5a0cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ KeyHash shd_hash(const void* data, size_t size) {
unsigned int hash = 0;
unsigned int i = 0;

for (i = 0; i < size; data++, i++)
for (i = 0; i < size; data_chars++, i++)
{
hash *= fnv_prime;
hash ^= (*data_chars);
Expand Down

0 comments on commit c5a0cfb

Please sign in to comment.