Skip to content

Commit

Permalink
fix int-to-pointer conversion warning
Browse files Browse the repository at this point in the history
(cherry picked from commit 9d0b023)
  • Loading branch information
shikokuchuo authored and gdamore committed Oct 7, 2024
1 parent 29aff2b commit 3c12762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/windows/win_tcpconn.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ tcp_close(void *arg)
c->s = INVALID_SOCKET;

if (s != INVALID_SOCKET) {
CancelIoEx(s, &c->send_io.olpd);
CancelIoEx(s, &c->recv_io.olpd);
CancelIoEx((HANDLE) s, &c->send_io.olpd);
CancelIoEx((HANDLE) s, &c->recv_io.olpd);
shutdown(s, SD_BOTH);
closesocket(s);
}
Expand Down

0 comments on commit 3c12762

Please sign in to comment.