Skip to content

Commit 9f9ffc0

Browse files
authored
Merge pull request #684 from walbourn/master
D3DX12.H: Fixed -Wsign-conversion warning with x86 clang/LLVM
2 parents 06debb3 + fe2d91d commit 9f9ffc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/D3DX12/d3dx12.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,11 +2013,11 @@ inline void MemcpySubresource(
20132013
for (UINT z = 0; z < NumSlices; ++z)
20142014
{
20152015
auto pDestSlice = static_cast<BYTE*>(pDest->pData) + pDest->SlicePitch * z;
2016-
auto pSrcSlice = (static_cast<const BYTE*>(pResourceData) + pSrc->Offset) + pSrc->DepthPitch * LONG_PTR(z);
2016+
auto pSrcSlice = (static_cast<const BYTE*>(pResourceData) + pSrc->Offset) + pSrc->DepthPitch * ULONG_PTR(z);
20172017
for (UINT y = 0; y < NumRows; ++y)
20182018
{
20192019
memcpy(pDestSlice + pDest->RowPitch * y,
2020-
pSrcSlice + pSrc->RowPitch * LONG_PTR(y),
2020+
pSrcSlice + pSrc->RowPitch * ULONG_PTR(y),
20212021
RowSizeInBytes);
20222022
}
20232023
}

0 commit comments

Comments
 (0)