mirror of
https://github.com/json-c/json-c.git
synced 2026-04-04 21:09:06 +08:00
Fix for clang ub sanitizer
This commit is contained in:
@@ -486,7 +486,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)
|
||||
|
||||
Reference in New Issue
Block a user