vulkan/wsi: fix pointer-integer conversion warnings
[mesa.git] / src / vulkan / wsi / wsi_common_x11.c
index 7b930884b4709d7c6dc4211a85ff249855ff797f..aaa4d1e658e89b14a007dec002a3aaa00812337d 100644 (file)
@@ -1325,7 +1325,7 @@ x11_surface_create_swapchain(VkIcdSurfaceBase *icd_surface,
     * mode which provokes reallocation when anything changes, to make
     * sure we have the most optimal allocation.
     */
-   struct x11_swapchain *old_chain = (void *) pCreateInfo->oldSwapchain;
+   struct x11_swapchain *old_chain = (void *)(intptr_t) pCreateInfo->oldSwapchain;
    if (old_chain)
       chain->last_present_mode = old_chain->last_present_mode;
    else