Change parameter to const void*.

pull/13171/head
Joshua Haberman 3 years ago
parent 570332dfee
commit 99d0b36baa
  1. 2
      upb/table.c
  2. 2
      upb/table_internal.h

@ -433,7 +433,7 @@ const uint64_t kWyhashSalt[5] = {
0x082EFA98EC4E6C89ULL, 0x452821E638D01377ULL, 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); return Wyhash(p, n, seed, kWyhashSalt);
} }

@ -374,7 +374,7 @@ void upb_inttable_iter_setdone(upb_inttable_iter* i);
bool upb_inttable_iter_isequal(const upb_inttable_iter* i1, bool upb_inttable_iter_isequal(const upb_inttable_iter* i1,
const upb_inttable_iter* i2); 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 #ifdef __cplusplus
} /* extern "C" */ } /* extern "C" */

Loading…
Cancel
Save