mirror of
https://github.com/RGBCube/serenity
synced 2025-06-02 20:08:12 +00:00
AK: Fix building Ptr32 on x86_64
This commit is contained in:
parent
1ae7d68885
commit
15e25a8c1f
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ public:
|
||||||
Ptr32(T* const ptr)
|
Ptr32(T* const ptr)
|
||||||
: m_ptr((u32) reinterpret_cast<FlatPtr>(ptr))
|
: m_ptr((u32) reinterpret_cast<FlatPtr>(ptr))
|
||||||
{
|
{
|
||||||
VERIFY((reinterpret_cast<FlatPtr>(ptr) & 0xFFFFFFFFULL) == reinterpret_cast<FlatPtr>(m_ptr));
|
VERIFY((reinterpret_cast<FlatPtr>(ptr) & 0xFFFFFFFFULL) == static_cast<FlatPtr>(m_ptr));
|
||||||
}
|
}
|
||||||
T& operator*() { return *static_cast<T*>(*this); }
|
T& operator*() { return *static_cast<T*>(*this); }
|
||||||
T const& operator*() const { return *static_cast<T const*>(*this); }
|
T const& operator*() const { return *static_cast<T const*>(*this); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue