From 012ddb6de72de74577d6d2d5e189e6d09f95c835 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 2 Sep 2011 21:23:22 +0000 Subject: * win32/win32.c (rb_w32_fd_copy): cast explicitly to suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32') diff --git a/win32/win32.c b/win32/win32.c index 26ac2721fe..908730bbec 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2370,8 +2370,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); } -- cgit v1.2.3