VmaDefragmentator::DefragmentRound: Minor fix for warning in 32-bit version.

This commit is contained in:
Adam Sawicki 2017-09-13 12:53:50 +02:00
parent 6462ea6d2a
commit 14efd2a1cf
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -5762,7 +5762,7 @@ VkResult VmaDefragmentator::DefragmentRound(
memcpy(
reinterpret_cast<char*>(pDstMappedData) + dstAllocRequest.offset,
reinterpret_cast<char*>(pSrcMappedData) + srcOffset,
size);
static_cast<size_t>(size));
pDstBlockInfo->m_pBlock->Alloc(dstAllocRequest, suballocType, size, allocInfo.m_hAllocation);
pSrcBlockInfo->m_pBlock->Free(allocInfo.m_hAllocation);