diff --git a/AK/NonnullOwnPtr.h b/AK/NonnullOwnPtr.h index 6c781c352b..91ea1f15ce 100644 --- a/AK/NonnullOwnPtr.h +++ b/AK/NonnullOwnPtr.h @@ -176,7 +176,7 @@ template struct Traits> : public GenericTraits> { using PeekType = T*; using ConstPeekType = const T*; - static unsigned hash(const NonnullOwnPtr& p) { return int_hash((u32)p.ptr()); } + static unsigned hash(const NonnullOwnPtr& p) { return ptr_hash((FlatPtr)p.ptr()); } static bool equals(const NonnullOwnPtr& a, const NonnullOwnPtr& b) { return a.ptr() == b.ptr(); } };