AK: Fix building Ptr32 on x86_64
This commit is contained in:
parent
1ae7d68885
commit
15e25a8c1f
Notes:
sideshowbarker
2024-07-18 11:35:44 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/15e25a8c1fa Pull-request: https://github.com/SerenityOS/serenity/pull/8225
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ public:
|
|||
Ptr32(T* const 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 const& operator*() const { return *static_cast<T const*>(*this); }
|
||||
|
|
Loading…
Add table
Reference in a new issue