From fadb4b92c5156f2ed980778c7be42a78296f75d4 Mon Sep 17 00:00:00 2001 From: Michel Zou Date: Thu, 2 Dec 2021 20:58:30 +0100 Subject: [PATCH] llvmpipe: Fix Wpointer-to-int-cast Fixes: 2771fd4a (gallium, windows: Use HANDLE instead of FD for external objects) Reviewed-by: Jesse Natalie Part-of: --- src/gallium/drivers/llvmpipe/lp_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index f979a165f52..8555b9ec761 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.c +++ b/src/gallium/drivers/llvmpipe/lp_texture.c @@ -1103,7 +1103,7 @@ llvmpipe_resource_get_param(struct pipe_screen *screen, if (!llvmpipe_resource_get_handle(screen, context, resource, &whandle, handle_usage)) return false; - *value = (uint64_t)whandle.handle; + *value = (uint64_t)(uintptr_t)whandle.handle; return true; default: break;