Replace reinterpret_cast from/to pointers to BitCast

This commit is contained in:
SirLynix
2024-01-03 17:19:42 +01:00
parent 6d1e7d7852
commit cd8c1cb160
10 changed files with 25 additions and 23 deletions

View File

@@ -520,7 +520,7 @@ namespace Nz
UInt64 VulkanHandleToInteger(T handle)
{
if constexpr (std::is_pointer_v<T>)
return static_cast<UInt64>(reinterpret_cast<std::uintptr_t>(handle));
return static_cast<UInt64>(BitCast<std::uintptr_t>(handle));
else
{
static_assert(std::is_integral_v<T>);