summaryrefslogtreecommitdiff
path: root/ev_select.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev_select.c')
-rw-r--r--ev_select.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ev_select.c b/ev_select.c
index b52a88d..3b06654 100644
--- a/ev_select.c
+++ b/ev_select.c
@@ -95,8 +95,8 @@ select_modify (EV_P_ int fd, int oev, int nev)
#else
- int word = fd / NFDBITS;
- int mask = 1UL << (fd % NFDBITS);
+ int word = fd / NFDBITS;
+ fd_mask mask = 1UL << (fd % NFDBITS);
if (expect_false (vec_max < word + 1))
{
@@ -108,8 +108,8 @@ select_modify (EV_P_ int fd, int oev, int nev)
vec_wo = ev_realloc (vec_wo, new_max * NFDBYTES); /* could free/malloc */
for (; vec_max < new_max; ++vec_max)
- ((fd_mask *)vec_ri)[vec_max] =
- ((fd_mask *)vec_wi)[vec_max] = 0;
+ ((fd_mask *)vec_ri) [vec_max] =
+ ((fd_mask *)vec_wi) [vec_max] = 0;
}
((fd_mask *)vec_ri) [word] |= mask;