summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.
*/