aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-10-27 11:20:28 +0000
committergingerBill <gingerBill@users.noreply.github.com>2025-10-27 11:20:28 +0000
commit62d231d6854361f22e2d2ad0fbfe2776ad717c4e (patch)
tree2b8b4eacbccf7af1d8a33565ec5071f01efd899c
parent6edb26dcf8000ca617d005f8d25970a4b168776f (diff)
Try C-cast with reintepret cast
-rw-r--r--src/ptr_map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ptr_map.cpp b/src/ptr_map.cpp
index 6d1e4df24..99d96d76a 100644
--- a/src/ptr_map.cpp
+++ b/src/ptr_map.cpp
@@ -13,7 +13,7 @@ enum : MapIndex { MAP_SENTINEL = ~(MapIndex)0 };
template <typename T>
struct PtrMapConstant {
- static constexpr T TOMBSTONE = reinterpret_cast<T>(reinterpret_cast<void *>(~(uintptr)0));
+ static constexpr T const TOMBSTONE = (T)reinterpret_cast<void *>(~(uintptr)0);
};
template <>