updat code

This commit is contained in:
Nick Peng
2018-04-24 00:24:44 +08:00
parent c6af293927
commit d3960e1018
14 changed files with 744 additions and 175 deletions

View File

@@ -79,7 +79,7 @@ static inline uint32_t __get_unaligned_cpu32(const void *p)
static inline uint32_t jhash(const void *key, uint32_t length, uint32_t initval)
{
uint32_t a, b, c;
const uint8_t *k = key;
const uint8_t *k = (uint8_t *)key;
/* Set up the internal state */
a = b = c = JHASH_INITVAL + length + initval;