diff options
author | root <root> | 2008-10-29 07:09:37 +0000 |
---|---|---|
committer | root <root> | 2008-10-29 07:09:37 +0000 |
commit | 31ad97afa76317ed705505d7a6be837b0b973213 (patch) | |
tree | b53ff35730399282e19b7261db3648f9b94e4550 /ev_epoll.c | |
parent | 6fe359149e0a2050905f6ccf9339ce3a94e9c6d2 (diff) |
*** empty log message ***
Diffstat (limited to 'ev_epoll.c')
-rw-r--r-- | ev_epoll.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)++anfds [fd].egen << 32); + ev.data.u64 = fd | ((uint64_t)(uint32_t)++anfds [fd].egen << 32); ev.events = (nev & EV_READ ? EPOLLIN : 0) | (nev & EV_WRITE ? EPOLLOUT : 0); @@ -138,7 +138,7 @@ epoll_poll (EV_P_ ev_tstamp timeout) | (ev->events & (EPOLLIN | EPOLLERR | EPOLLHUP) ? EV_READ : 0); /* check for spurious notification */ - if (expect_false (anfds [fd].egen != (uint32_t)(ev->data.u64 >> 32))) + if (expect_false ((uint32_t)anfds [fd].egen != (uint32_t)(ev->data.u64 >> 32))) { /* recreate kernel state */ postfork = 1; |