mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[algs] Adjust int hash
This commit is contained in:
parent
078b2a5101
commit
fa64e42d75
1 changed files with 2 additions and 1 deletions
|
@ -315,7 +315,8 @@ struct
|
|||
impl (const T& v, hb_priority<2>) const HB_RETURN (uint32_t, hb_deref (v).hash ())
|
||||
|
||||
// Horrible: std:hash() of integers seems to be identity in gcc / clang?!
|
||||
template <typename T> constexpr auto
|
||||
template <typename T,
|
||||
hb_enable_if (std::is_integral<T>::value)> constexpr auto
|
||||
impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, v * 8388607)
|
||||
|
||||
template <typename T> constexpr auto
|
||||
|
|
Loading…
Add table
Reference in a new issue