summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
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);
}