summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-02 19:27:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-02 19:27:56 +0000
commitab8e05cc451249202e32a4f8a901a9edf7101b14 (patch)
tree967a35c50dcf1b631c8e230abc3d3e5f9ad96217
parent7694c3415795fca12f214041baf7a75e25e9d97f (diff)
* win32/win32.c (rb_w32_fdcopy): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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);
}