summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-03 13:50:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-03 13:50:55 +0000
commitac46d76ce83e8ccf5ec20ea0b671175dbeb0cdee (patch)
tree0d9b1922700255eb083821bd7b7e71a1c3b7b8eb /thread.c
parentb45c882aec9d5d97261b11704c931c03f8d69639 (diff)
* thread.c (rb_fd_rcopy): suppress warnings on mingw32.
* win32/win32.c (overlapped_socket_io, recvmsg, sendmsg, dupfd): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33621 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 d9d497ad6c..80550eeaaa 100644
--- a/thread.c
+++ b/thread.c
@@ -2471,7 +2471,7 @@ rb_fd_rcopy(fd_set *dst, rb_fdset_t *src)
/* we assume src is the result of select() with dst, so dst should be
* larger or equal than src. */
- if (max > FD_SETSIZE || max > dst->fd_count) {
+ if (max > FD_SETSIZE || (UINT)max > dst->fd_count) {
rb_raise(rb_eArgError, "too large fdsets");
}