From 873141acb17530717b3e107623d3882debc09855 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 11 Feb 2018 15:29:36 -0800 Subject: [PATCH] ISO C correct fix for casting void* to function pointer --- src/video/windows/SDL_windowsvulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/windows/SDL_windowsvulkan.c b/src/video/windows/SDL_windowsvulkan.c index 42e8befc4..9d8e12119 100644 --- a/src/video/windows/SDL_windowsvulkan.c +++ b/src/video/windows/SDL_windowsvulkan.c @@ -57,7 +57,7 @@ int WIN_Vulkan_LoadLibrary(_THIS, const char *path) return -1; SDL_strlcpy(_this->vulkan_config.loader_path, path, SDL_arraysize(_this->vulkan_config.loader_path)); - vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr) SDL_LoadFunction( + *(void **)&vkGetInstanceProcAddr = SDL_LoadFunction( _this->vulkan_config.loader_handle, "vkGetInstanceProcAddr"); if(!vkGetInstanceProcAddr) goto fail;