From 15e25a8c1fa0eb411c58ca22b97fb4a9c623561c Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 23 Jun 2021 22:05:23 +0200 Subject: [PATCH] AK: Fix building Ptr32 on x86_64 --- AK/Ptr32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Ptr32.h b/AK/Ptr32.h index d3e458d8aa..c1544b402e 100644 --- a/AK/Ptr32.h +++ b/AK/Ptr32.h @@ -19,7 +19,7 @@ public: Ptr32(T* const ptr) : m_ptr((u32) reinterpret_cast(ptr)) { - VERIFY((reinterpret_cast(ptr) & 0xFFFFFFFFULL) == reinterpret_cast(m_ptr)); + VERIFY((reinterpret_cast(ptr) & 0xFFFFFFFFULL) == static_cast(m_ptr)); } T& operator*() { return *static_cast(*this); } T const& operator*() const { return *static_cast(*this); }