From 42ffd6e916118abbf43fb2137e6ab25065420a34 Mon Sep 17 00:00:00 2001 From: PioLing <964472638@qq.com> Date: Thu, 25 Jul 2024 17:59:36 +0800 Subject: [PATCH] =?UTF-8?q?remove=20=E2=80=9C=EF=BC=88=EF=BC=89=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Poller/EventPoller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {