summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2009-01-07 17:54:57 +0000
committerroot <root>2009-01-07 17:54:57 +0000
commit0ad66437b93ab4ff16222834e9886448111a7273 (patch)
tree8b1162688f91c5cf9e585e6d893fbfbd8260876a
parent45920dd879937605783e2a764ba29c152686b21d (diff)
c89
-rw-r--r--ev_select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ev_select.c b/ev_select.c
index 5a5a61d..1b54ea7 100644
--- a/ev_select.c
+++ b/ev_select.c
@@ -72,14 +72,14 @@ select_modify (EV_P_ int fd, int oev, int nev)
{
#if EV_SELECT_USE_FD_SET
- assert (("libev: fd >= FD_SETSIZE passed to fd_set-based select backend", fd < FD_SETSIZE));
-
#if EV_SELECT_IS_WINSOCKET
SOCKET handle = anfds [fd].handle;
#else
int handle = fd;
#endif
+ assert (("libev: fd >= FD_SETSIZE passed to fd_set-based select backend", fd < FD_SETSIZE));
+
/* FD_SET is broken on windows (it adds the fd to a set twice or more,
* which eventually leads to overflows). Need to call it only on changes.
*/