aboutsummaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
authorJamie Madill <jmadill@chromium.org>2016-11-30 12:47:45 -0500
committerMark Young <marky@lunarg.com>2016-12-01 10:56:06 -0700
commit81287882037c88bf7ff85ec83e30b6b1960aa6dd (patch)
tree53a1bcea872f396b54cd7e3b2d2fb7e35e64c99a /loader
parentb87dc82bc54a7e8985a409131cf6ba1a7fb367a6 (diff)
downloadusermoji-81287882037c88bf7ff85ec83e30b6b1960aa6dd.tar.xz
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.
Diffstat (limited to 'loader')
-rw-r--r--loader/wsi.c2
1 files changed, 1 insertions, 1 deletions
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],