diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-02 21:23:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-02 21:23:22 +0000 |
commit | 69dff899a06d501fc091821f29d7dc697c247e64 (patch) | |
tree | 63b9bbc659cd1817e416e3f1ead7aaec3a94b3ad /win32/win32.c | |
parent | 7dc7da3d86bed37d1c9ec7331b45b418746ce65d (diff) | |
download | ruby-69dff899a06d501fc091821f29d7dc697c247e64.tar.gz |
* 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
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c index a6fb507e41..73f9b64ada 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -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); } |