summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 1b72ef79ee..08d123ee57 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2370,7 +2370,7 @@ rb_w32_fdisset(int fd, fd_set *set)
void
rb_w32_fdcopy(rb_fdset_t *dst, const rb_fdset_t *src)
{
- if (dst->capa < src->fdset->fd_count) {
+ if ((UINT)dst->capa < src->fdset->fd_count) {
dst->capa = (src->fdset->fd_count / FD_SETSIZE + 1) * FD_SETSIZE;
dst->fdset = xrealloc(dst->fdset, sizeof(unsigned int) + sizeof(SOCKET) * dst->capa);
}