* win32/win32.c (rb_w32_fd_copy): cast explicitly to suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7dc7da3d86
commit
69dff899a0
@ -2470,8 +2470,8 @@ rb_w32_fdisset(int fd, fd_set *set)
|
|||||||
void
|
void
|
||||||
rb_w32_fd_copy(rb_fdset_t *dst, const fd_set *src, int max)
|
rb_w32_fd_copy(rb_fdset_t *dst, const fd_set *src, int max)
|
||||||
{
|
{
|
||||||
max = min(src->fd_count, max);
|
max = min(src->fd_count, (UINT)max);
|
||||||
if ((UINT)dst->capa < max) {
|
if ((UINT)dst->capa < (UINT)max) {
|
||||||
dst->capa = (src->fd_count / FD_SETSIZE + 1) * FD_SETSIZE;
|
dst->capa = (src->fd_count / FD_SETSIZE + 1) * FD_SETSIZE;
|
||||||
dst->fdset = xrealloc(dst->fdset, sizeof(unsigned int) + sizeof(SOCKET) * dst->capa);
|
dst->fdset = xrealloc(dst->fdset, sizeof(unsigned int) + sizeof(SOCKET) * dst->capa);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user