From f89dbdb89820aa1fe51c0216eb1c15928c9349d6 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 12 Mar 2009 09:16:15 +0000 Subject: * 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 --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') 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); } -- cgit