From 6d44afc7dd129603401ce1a7ee4a059be1fbdda4 Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Wed, 24 Jul 2024 06:24:51 +0200 Subject: Replace 'reinterpret_cast' with 'static_cast' --- Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp') diff --git a/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp b/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp index b972b9dd6f..049d090a0d 100644 --- a/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp +++ b/Source/Core/VideoBackends/D3D/D3DBoundingBox.cpp @@ -79,7 +79,7 @@ std::vector D3DBoundingBox::Read(u32 index, u32 length) HRESULT hr = D3D::context->Map(m_staging_buffer.Get(), 0, D3D11_MAP_READ, 0, &map); if (SUCCEEDED(hr)) { - std::memcpy(values.data(), reinterpret_cast(map.pData) + sizeof(BBoxType) * index, + std::memcpy(values.data(), static_cast(map.pData) + sizeof(BBoxType) * index, sizeof(BBoxType) * length); D3D::context->Unmap(m_staging_buffer.Get(), 0); -- cgit v1.2.3