vulkan/alloc: Use char * for pointer arithmetic

MSVC doesn't like arithmetic on void *.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9511>
This commit is contained in:
Jason Ekstrand 2021-03-10 20:36:17 -06:00
parent 492b5577f0
commit e7e297732e

View file

@ -199,7 +199,7 @@ vk_multialloc_alloc(struct vk_multialloc *ma,
const VkAllocationCallbacks *alloc,
VkSystemAllocationScope scope)
{
void *ptr = vk_alloc(alloc, ma->size, ma->align, scope);
char *ptr = vk_alloc(alloc, ma->size, ma->align, scope);
if (!ptr)
return NULL;