diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-21 15:26:12 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-21 15:26:12 +0000 |
commit | 08f8dfc20bdec42a08b6c062ec993f00f4b8775b (patch) | |
tree | 300a92649eae66db44733c03019fa1aa44afb717 /io.c | |
parent | f49f6ff1d75d7cb456811f6fa15aa9a935236748 (diff) | |
download | ruby-08f8dfc20bdec42a08b6c062ec993f00f4b8775b.tar.gz |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |