Skip to content

Commit

Permalink
Fix for problem when using clang ubsan
Browse files Browse the repository at this point in the history
  • Loading branch information
robiwano committed Mar 11, 2020
1 parent 985c46f commit 6b368fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkhash.c
Expand Up @@ -482,7 +482,7 @@ static unsigned long lh_char_hash(const void *k)
#endif
}

return hashlittle((const char*)k, strlen((const char*)k), random_seed);
return hashlittle((const char*)k, strlen((const char*)k), (uint32_t)random_seed);
}

int lh_char_equal(const void *k1, const void *k2)
Expand Down

0 comments on commit 6b368fc

Please sign in to comment.