From f578b06d837f246955db4977acd36f7aabafb918 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 11 Sep 2023 20:49:06 +0200 Subject: [PATCH] tag/Pool: move calc_hash() returns std::size_t --- src/tag/Pool.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tag/Pool.cxx b/src/tag/Pool.cxx index 83d9efab8..b824bdf4a 100644 --- a/src/tag/Pool.cxx +++ b/src/tag/Pool.cxx @@ -50,10 +50,10 @@ static std::array, 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;