diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-27 11:10:53 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-27 11:10:53 +0000 |
| commit | 6edb26dcf8000ca617d005f8d25970a4b168776f (patch) | |
| tree | 80b17e75f3e40999727c64177acfe049d590c6d9 /src | |
| parent | 13f20906089ecd4b3e5f9c0d1b9605532c4c8c15 (diff) | |
Use `reinterpret_cast`
Diffstat (limited to 'src')
| -rw-r--r-- | src/ptr_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ptr_map.cpp b/src/ptr_map.cpp index c72204a3d..6d1e4df24 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 = (T)(void *)~(uintptr)0; + static constexpr T TOMBSTONE = reinterpret_cast<T>(reinterpret_cast<void *>(~(uintptr)0)); }; template <> |