diff --git a/src/Poller/EventPoller.cpp b/src/Poller/EventPoller.cpp index 50ac4902..2672e97a 100644 --- a/src/Poller/EventPoller.cpp +++ b/src/Poller/EventPoller.cpp @@ -118,7 +118,7 @@ int EventPoller::addEvent(int fd, int event, PollEventCB cb) { if (isCurrentThread()) { #if defined(HAS_EPOLL) struct epoll_event ev = {0}; - ev.events = (toEpoll(event)) ; + ev.events = toEpoll(event) ; ev.data.fd = fd; int ret = epoll_ctl(_event_fd, EPOLL_CTL_ADD, fd, &ev); if (ret != -1) {