diff options
author | Sverker Eriksson <sverker@erlang.org> | 2013-09-04 18:12:02 +0200 |
---|---|---|
committer | Sverker Eriksson <sverker@erlang.org> | 2013-09-04 18:18:18 +0200 |
commit | b00a53c0d1dc0dea0231f7aae31ccc6f96577e77 (patch) | |
tree | 7db672aadad89f6f90ed931cfa42195ebdd42137 /erts/emulator/sys/common/erl_poll.c | |
parent | 8cece79b77952c991e62ae595bcf71cde016a052 (diff) | |
download | otp-b00a53c0d1dc0dea0231f7aae31ccc6f96577e77.tar.gz otp-b00a53c0d1dc0dea0231f7aae31ccc6f96577e77.tar.bz2 otp-b00a53c0d1dc0dea0231f7aae31ccc6f96577e77.zip |
erts: Fix faulty assert in "unlimited select" for mac
Diffstat (limited to 'erts/emulator/sys/common/erl_poll.c')
-rw-r--r-- | erts/emulator/sys/common/erl_poll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/sys/common/erl_poll.c b/erts/emulator/sys/common/erl_poll.c index 5861b30315..7676d8872a 100644 --- a/erts/emulator/sys/common/erl_poll.c +++ b/erts/emulator/sys/common/erl_poll.c @@ -123,8 +123,8 @@ static ERTS_INLINE int ERTS_SELECT(int nfds, ERTS_fd_set *readfds, ERTS_fd_set *writefds, ERTS_fd_set *exceptfds, struct timeval *timeout) { - ASSERT(!readfds || readfds->sz >= nfds); - ASSERT(!writefds || writefds->sz >= nfds); + ASSERT(!readfds || readfds->sz >= ERTS_FD_SIZE(nfds)); + ASSERT(!writefds || writefds->sz >= ERTS_FD_SIZE(nfds)); ASSERT(!exceptfds); return select(nfds, (readfds ? readfds->ptr : NULL ), |