mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
Fix the assert I added to epoll.c: spotted by Dmitry Novikov
svn:r1432
This commit is contained in:
parent
c2ead9f173
commit
2622e5ace2
2
epoll.c
2
epoll.c
@ -163,7 +163,7 @@ epoll_dispatch(struct event_base *base, struct timeval *tv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
event_debug(("%s: epoll_wait reports %d", __func__, res));
|
event_debug(("%s: epoll_wait reports %d", __func__, res));
|
||||||
assert(res < epollop->nevents);
|
assert(res <= epollop->nevents);
|
||||||
|
|
||||||
for (i = 0; i < res; i++) {
|
for (i = 0; i < res; i++) {
|
||||||
int what = events[i].events;
|
int what = events[i].events;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user