Skip to content

Commit

Permalink
* win32/win32.c (rb_w32_fd_copy): cast explicitly to suppress warnings.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Sep 2, 2011
1 parent 7dc7da3 commit 69dff89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions win32/win32.c
Expand Up @@ -2470,8 +2470,8 @@ rb_w32_fdisset(int fd, fd_set *set)
void
rb_w32_fd_copy(rb_fdset_t *dst, const fd_set *src, int max)
{
max = min(src->fd_count, max);
if ((UINT)dst->capa < max) {
max = min(src->fd_count, (UINT)max);
if ((UINT)dst->capa < (UINT)max) {
dst->capa = (src->fd_count / FD_SETSIZE + 1) * FD_SETSIZE;
dst->fdset = xrealloc(dst->fdset, sizeof(unsigned int) + sizeof(SOCKET) * dst->capa);
}
Expand Down

0 comments on commit 69dff89

Please sign in to comment.