summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-10-29 07:10:16 +0000
committerroot <root>2008-10-29 07:10:16 +0000
commit6c2b22e22f8573bc5fa5ce68b5a2caef122428c6 (patch)
treef94fe21f9668e547751c1d7707113096f38644fb
parent31ad97afa76317ed705505d7a6be837b0b973213 (diff)
just in case :)
-rw-r--r--ev_epoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ev_epoll.c b/ev_epoll.c
index 13cb4de..a57e203 100644
--- a/ev_epoll.c
+++ b/ev_epoll.c
@@ -80,7 +80,7 @@ epoll_modify (EV_P_ int fd, int oev, int nev)
anfds [fd].emask = nev;
/* store the generation counter in the upper 32 bits */
- ev.data.u64 = fd | ((uint64_t)(uint32_t)++anfds [fd].egen << 32);
+ ev.data.u64 = (uint64_t)(uint32_t)fd | ((uint64_t)(uint32_t)++anfds [fd].egen << 32);
ev.events = (nev & EV_READ ? EPOLLIN : 0)
| (nev & EV_WRITE ? EPOLLOUT : 0);