From 81287882037c88bf7ff85ec83e30b6b1960aa6dd Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Wed, 30 Nov 2016 12:47:45 -0500 Subject: loader: Fix cast warning in wsi.c In 32-bits, this was downcasting a VkSurfaceKHR and comparing it with NULL. Since VkSurfaceKHR is defined as a uint64_t, it's better to cast the NULL to a VkSurfaceKHR to avoid a warning. --- loader/wsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loader') diff --git a/loader/wsi.c b/loader/wsi.c index 25f26300..e5989c2c 100644 --- a/loader/wsi.c +++ b/loader/wsi.c @@ -626,7 +626,7 @@ out: i = 0; for (struct loader_icd_term *icd_term = ptr_instance->icd_terms; icd_term != NULL; icd_term = icd_term->next, i++) { - if (NULL != (void *)pIcdSurface->real_icd_surfaces[i] && + if ((VkSurfaceKHR)NULL != pIcdSurface->real_icd_surfaces[i] && NULL != icd_term->DestroySurfaceKHR) { icd_term->DestroySurfaceKHR( icd_term->instance, pIcdSurface->real_icd_surfaces[i], -- cgit v1.2.3