aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-09-04 18:12:02 +0200
committerSverker Eriksson <[email protected]>2013-09-04 18:18:18 +0200
commitb00a53c0d1dc0dea0231f7aae31ccc6f96577e77 (patch)
tree7db672aadad89f6f90ed931cfa42195ebdd42137 /erts/emulator
parent8cece79b77952c991e62ae595bcf71cde016a052 (diff)
downloadotp-b00a53c0d1dc0dea0231f7aae31ccc6f96577e77.tar.gz
otp-b00a53c0d1dc0dea0231f7aae31ccc6f96577e77.tar.bz2
otp-b00a53c0d1dc0dea0231f7aae31ccc6f96577e77.zip
erts: Fix faulty assert in "unlimited select" for mac
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/sys/common/erl_poll.c4
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 ),