aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2025-03-11 15:13:49 -0600
committerTom Tromey <tom@tromey.com>2025-03-12 14:23:50 -0600
commitb6cc4ef6d20c8b7cf216b67b6ae7eb21319f0efe (patch)
tree0b4b30bd18d6fce1fe5f9bda43797f2612150112
parentadd96080cf9e460afe478cfad489d7f22ab10678 (diff)
downloadbinutils-b6cc4ef6d20c8b7cf216b67b6ae7eb21319f0efe.zip
binutils-b6cc4ef6d20c8b7cf216b67b6ae7eb21319f0efe.tar.gz
binutils-b6cc4ef6d20c8b7cf216b67b6ae7eb21319f0efe.tar.bz2
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.
-rw-r--r--gdbsupport/string-set.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbsupport/string-set.h b/gdbsupport/string-set.h
index c250745..c9078fc 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<std::string_view> () (rhs);
}