From 9855b678f218ca89376dad44032cd3fc73aadbba Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 16 Nov 2022 13:37:34 -0700 Subject: [PATCH] [cache] Minor rewrite assertion --- src/hb-cache.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-cache.hh b/src/hb-cache.hh index 897f313fb..f8c8108f1 100644 --- a/src/hb-cache.hh +++ b/src/hb-cache.hh @@ -46,7 +46,7 @@ struct hb_cache_t >::type; static_assert ((key_bits >= cache_bits), ""); - static_assert ((key_bits + value_bits - cache_bits <= 8 * sizeof (item_t)), ""); + static_assert ((key_bits + value_bits <= cache_bits + 8 * sizeof (item_t)), ""); void init () { clear (); } void fini () {}