Skip to content

Commit

Permalink
restore the declaration of _upb_Hash()
Browse files Browse the repository at this point in the history
It turns out that this function is, annoyingly, being used by Ruby.

PiperOrigin-RevId: 490305008
  • Loading branch information
ericsalo authored and copybara-github committed Nov 22, 2022
1 parent a1d054b commit efb166b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions upb/hash/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,11 @@ UPB_INLINE size_t upb_table_size(const upb_table* t) {
}

// Internal-only functions, in .h file only out of necessity.

UPB_INLINE bool upb_tabent_isempty(const upb_tabent* e) { return e->key == 0; }

uint32_t _upb_Hash(const void* p, size_t n, uint64_t seed);

#ifdef __cplusplus
} /* extern "C" */
#endif
Expand Down

0 comments on commit efb166b

Please sign in to comment.