[algs] Adjust int hash

This commit is contained in:
Behdad Esfahbod 2023-05-08 23:31:52 -06:00
parent 078b2a5101
commit fa64e42d75

View file

@ -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