summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-02 21:23:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-02 21:23:22 +0000
commit012ddb6de72de74577d6d2d5e189e6d09f95c835 (patch)
treecc0bc9665da18905d6e9295432c5190b7eec84a4 /win32
parent8403b23f367aa04e6620761fc1e1dd2d92219969 (diff)
* 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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c4
1 files changed, 2 insertions, 2 deletions
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);
}