sock: squelch clang non-matching cast warning

This commit is contained in:
Bert Belder 2018-05-17 00:39:25 -07:00
parent 73af86d1f5
commit 3e2cc6379f
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -47,7 +47,8 @@ static inline void _ep_sock_free(ep_sock_t* sock_info) {
}
static int _ep_sock_cancel_poll(ep_sock_t* sock_info) {
HANDLE driver_handle = (HANDLE) poll_group_get_socket(sock_info->poll_group);
HANDLE driver_handle =
(HANDLE)(uintptr_t) poll_group_get_socket(sock_info->poll_group);
assert(sock_info->poll_status == _POLL_PENDING);
/* CancelIoEx() may fail with ERROR_NOT_FOUND if the overlapped operation has