llvmpipe: Fix Wpointer-to-int-cast

Fixes: 2771fd4a (gallium, windows: Use HANDLE instead of FD for external objects)
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14021>
This commit is contained in:
Michel Zou 2021-12-02 20:58:30 +01:00 committed by Marge Bot
parent 9b2600da87
commit fadb4b92c5

View file

@ -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;