summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-21 15:26:12 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-21 15:26:12 +0000
commit08f8dfc20bdec42a08b6c062ec993f00f4b8775b (patch)
tree300a92649eae66db44733c03019fa1aa44afb717 /io.c
parentf49f6ff1d75d7cb456811f6fa15aa9a935236748 (diff)
* io.c (linux_get_maxfd): get rid of a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 47ce2bac89..81da283384 100644
--- a/io.c
+++ b/io.c
@@ -5153,7 +5153,7 @@ linux_get_maxfd(void)
if (ss == -1) goto err;
p = buf;
e = buf + ss;
- while (sizeof("FDSize:\t0\n")-1 <= e-p &&
+ while ((int)sizeof("FDSize:\t0\n")-1 <= e-p &&
(n = memchr(p, '\n', e-p)) != NULL) {
if (memcmp(p, "FDSize:", sizeof("FDSize:")-1) == 0) {
int fdsize;