diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 02c5a8697..34e512e7e 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -245,7 +245,7 @@ struct template constexpr uint32_t impl (const hb::shared_ptr& v, hb_priority<1>) const { - return (uint32_t) (intptr_t) v.get ()->hash (); + return v.get () ? v.get ()->hash () : 0; } template constexpr auto