mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[algs] Adjust int hash
This commit is contained in:
1 parent
078b2a5101
commit
fa64e42d75
1 file changed
+2
-1
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user