summaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-12 09:16:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-12 09:16:15 +0000
commitf89dbdb89820aa1fe51c0216eb1c15928c9349d6 (patch)
tree44da5708baceb68988497901e3915fbcece7c02d /thread.c
parentcb68b1b22b01274a4b39cccd780067a3a69db743 (diff)
downloadruby-f89dbdb89820aa1fe51c0216eb1c15928c9349d6.tar.gz
ruby-f89dbdb89820aa1fe51c0216eb1c15928c9349d6.tar.xz
ruby-f89dbdb89820aa1fe51c0216eb1c15928c9349d6.zip
* array.c, bignum.c, dln.c, error.c, gc.c, io.c, marshal.c,
numeric.c, pack.c, strftime.c, string.c, thread.c, transcode.c, transcode_data.h, util.c, variable.c, vm_dump.c, include/ruby/encoding.h, missing/crypt.c, missing/vsnprintf.c: suppress VC type warnings. [ruby-core:22726] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index a2c882cff..3627811bf 100644
--- a/thread.c
+++ b/thread.c
@@ -2280,7 +2280,7 @@ rb_fd_set(int fd, rb_fdset_t *set)
return;
}
}
- if (set->fdset->fd_count >= set->capa) {
+ if (set->fdset->fd_count >= (unsigned)set->capa) {
set->capa = (set->fdset->fd_count / FD_SETSIZE + 1) * FD_SETSIZE;
set->fdset = xrealloc(set->fdset, sizeof(unsigned int) + sizeof(SOCKET) * set->capa);
}