mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 04:24:43 +00:00
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.
This commit is contained in:
@@ -109,12 +109,12 @@ private:
|
|||||||
using is_transparent = void;
|
using is_transparent = void;
|
||||||
using is_avalanching = 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 ());
|
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);
|
return ankerl::unordered_dense::hash<std::string_view> () (rhs);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user