diff --git a/AK/RefPtr.h b/AK/RefPtr.h index 99ebca89b9..91e08be088 100644 --- a/AK/RefPtr.h +++ b/AK/RefPtr.h @@ -108,7 +108,7 @@ public: { if (this != static_cast(&other)) { deref_if_not_null(m_ptr); - m_ptr = other.leak_ref(); + m_ptr = static_cast(other.leak_ref()); } return *this; }