From 62d231d6854361f22e2d2ad0fbfe2776ad717c4e Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 27 Oct 2025 11:20:28 +0000 Subject: [PATCH] Try C-cast with reintepret cast --- src/ptr_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 struct PtrMapConstant { - static constexpr T TOMBSTONE = reinterpret_cast(reinterpret_cast(~(uintptr)0)); + static constexpr T const TOMBSTONE = (T)reinterpret_cast(~(uintptr)0); }; template <>