From 08f8dfc20bdec42a08b6c062ec993f00f4b8775b Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 21 Nov 2011 15:26:12 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ io.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4cb884c1aa..d69317e3a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 22 00:25:17 2011 Tanaka Akira + + * io.c (linux_get_maxfd): get rid of a warning. + Mon Nov 21 23:39:14 2011 Tanaka Akira * io.c (linux_get_maxfd): new function to find maximum fd on Linux. 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;