Fixed warning: implicit conversion loses integer precision: 'VkDeviceSize' (aka 'unsigned long long') to 'size_t' (aka 'unsigned int')

This commit is contained in:
Sam Lantinga
2024-07-29 12:01:53 -07:00
parent c4582a6536
commit 930d83aed2

View File

@@ -2763,7 +2763,7 @@ static VkResult VULKAN_UpdateTextureInternal(VULKAN_RenderData *rendererData, Vk
length = pitch;
}
for (VkDeviceSize row = h; row--; ) {
SDL_memcpy(dst, src, length);
SDL_memcpy(dst, src, (size_t)length);
src += pitch;
dst += length;
}