From b6cc4ef6d20c8b7cf216b67b6ae7eb21319f0efe Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 11 Mar 2025 15:13:49 -0600 Subject: [PATCH] Use correct types in string-set.h My earlier patch to introduce string-set.h used the wrong type in the hash functions. This patch fixes the error. --- gdbsupport/string-set.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdbsupport/string-set.h b/gdbsupport/string-set.h index c2507454650..c9078fc1ad1 100644 --- a/gdbsupport/string-set.h +++ b/gdbsupport/string-set.h @@ -109,12 +109,12 @@ private: using is_transparent = void; using is_avalanching = void; - bool operator() (const local_string &rhs) const noexcept + uint64_t operator() (const local_string &rhs) const noexcept { return (*this) (rhs.as_view ()); } - bool operator() (std::string_view rhs) const noexcept + uint64_t operator() (std::string_view rhs) const noexcept { return ankerl::unordered_dense::hash () (rhs); } -- 2.47.3