diff --git a/upb/table.c b/upb/table.c index 965a37c0b0..941f258411 100644 --- a/upb/table.c +++ b/upb/table.c @@ -433,7 +433,7 @@ const uint64_t kWyhashSalt[5] = { 0x082EFA98EC4E6C89ULL, 0x452821E638D01377ULL, }; -uint32_t _upb_Hash(const char* p, size_t n, uint64_t seed) { +uint32_t _upb_Hash(const void* p, size_t n, uint64_t seed) { return Wyhash(p, n, seed, kWyhashSalt); } diff --git a/upb/table_internal.h b/upb/table_internal.h index 1c3acce4be..418f470c3f 100644 --- a/upb/table_internal.h +++ b/upb/table_internal.h @@ -374,7 +374,7 @@ void upb_inttable_iter_setdone(upb_inttable_iter* i); bool upb_inttable_iter_isequal(const upb_inttable_iter* i1, const upb_inttable_iter* i2); -uint32_t _upb_Hash(const char* p, size_t n, uint64_t seed); +uint32_t _upb_Hash(const void* p, size_t n, uint64_t seed); #ifdef __cplusplus } /* extern "C" */