ruby-changes:21118
From: nobu <ko1@a...>
Date: Sat, 3 Sep 2011 06:23:36 +0900 (JST)
Subject: [ruby-changes:21118] nobu:r33166 (trunk, ruby_1_9_3): * win32/win32.c (rb_w32_fd_copy): cast explicitly to suppress warnings.
nobu 2011-09-03 06:23:22 +0900 (Sat, 03 Sep 2011) New Revision: 33166 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33166 Log: * win32/win32.c (rb_w32_fd_copy): cast explicitly to suppress warnings. Modified files: branches/ruby_1_9_3/win32/win32.c trunk/win32/win32.c Index: win32/win32.c =================================================================== --- win32/win32.c (revision 33165) +++ win32/win32.c (revision 33166) @@ -2470,8 +2470,8 @@ 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); } Index: ruby_1_9_3/win32/win32.c =================================================================== --- ruby_1_9_3/win32/win32.c (revision 33165) +++ ruby_1_9_3/win32/win32.c (revision 33166) @@ -2370,8 +2370,8 @@ 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/