From fa64e42d755709df2837fcfb8d60ff6d8b1179fb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 8 May 2023 23:31:52 -0600 Subject: [PATCH] [algs] Adjust int hash --- src/hb-algs.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-algs.hh b/src/hb-algs.hh index e4889a6d8..0324d0ac1 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -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 constexpr auto + template ::value)> constexpr auto impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, v * 8388607) template constexpr auto