aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2013-09-05 15:47:50 +0200
committerPeter Andersson <[email protected]>2013-09-05 15:47:50 +0200
commitfce30eefb8c805c0597f873b612aadb59bf4ffc9 (patch)
tree5c8fc534748a570802e603f025155c6d37325cac /erts/emulator/sys
parent4f045e2e0b3cb01a94ddb5d00b5ee66b798dc69b (diff)
parenta49cb1b7492b4c34f5887eaa0cb7774c693a524d (diff)
downloadotp-fce30eefb8c805c0597f873b612aadb59bf4ffc9.tar.gz
otp-fce30eefb8c805c0597f873b612aadb59bf4ffc9.tar.bz2
otp-fce30eefb8c805c0597f873b612aadb59bf4ffc9.zip
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/sys')
-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 ),