tag/Pool: move calc_hash() returns std::size_t

This commit is contained in:
Max Kellermann 2023-09-11 20:49:06 +02:00
parent 0748f75d9b
commit f578b06d83
1 changed files with 2 additions and 2 deletions

View File

@ -50,10 +50,10 @@ static std::array<IntrusiveList<TagPoolItem,
IntrusiveListOptions{.zero_initialized = true}>,
16127> slots;
static inline unsigned
static inline std::size_t
calc_hash(TagType type, std::string_view p) noexcept
{
unsigned hash = 5381;
std::size_t hash = 5381;
for (auto ch : p)
hash = (hash << 5) + hash + ch;