mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
Use reinterpret_cast
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ enum : MapIndex { MAP_SENTINEL = ~(MapIndex)0 };
|
||||
|
||||
template <typename T>
|
||||
struct PtrMapConstant {
|
||||
static constexpr T TOMBSTONE = (T)(void *)~(uintptr)0;
|
||||
static constexpr T TOMBSTONE = reinterpret_cast<T>(reinterpret_cast<void *>(~(uintptr)0));
|
||||
};
|
||||
|
||||
template <>
|
||||
|
||||
Reference in New Issue
Block a user