mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-16 23:10:13 +02:00
Fixed -Wsign-conversion warning
This commit is contained in:
parent
7d95a9d89a
commit
fb59321127
@ -1868,12 +1868,12 @@ inline void MemcpySubresource(
|
|||||||
{
|
{
|
||||||
for (UINT z = 0; z < NumSlices; ++z)
|
for (UINT z = 0; z < NumSlices; ++z)
|
||||||
{
|
{
|
||||||
BYTE* pDestSlice = reinterpret_cast<BYTE*>(pDest->pData) + pDest->SlicePitch * z;
|
auto pDestSlice = reinterpret_cast<BYTE*>(pDest->pData) + pDest->SlicePitch * z;
|
||||||
const BYTE* pSrcSlice = reinterpret_cast<const BYTE*>(pSrc->pData) + pSrc->SlicePitch * z;
|
auto pSrcSlice = reinterpret_cast<const BYTE*>(pSrc->pData) + pSrc->SlicePitch * LONG_PTR(z);
|
||||||
for (UINT y = 0; y < NumRows; ++y)
|
for (UINT y = 0; y < NumRows; ++y)
|
||||||
{
|
{
|
||||||
memcpy(pDestSlice + pDest->RowPitch * y,
|
memcpy(pDestSlice + pDest->RowPitch * y,
|
||||||
pSrcSlice + pSrc->RowPitch * y,
|
pSrcSlice + pSrc->RowPitch * LONG_PTR(y),
|
||||||
RowSizeInBytes);
|
RowSizeInBytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user