Silence a few remaining -Wconversion warnings.

This commit is contained in:
Todd C. Miller
2023-08-23 14:56:50 -06:00
parent 522ac12f21
commit df969d30b4
3 changed files with 21 additions and 20 deletions

View File

@@ -200,7 +200,7 @@ sudo_ev_scan_impl(struct sudo_event_base *base, unsigned int flags)
}
}
nready = sudo_ev_poll(base->pfds, base->pfd_high + 1, timeout);
nready = sudo_ev_poll(base->pfds, (nfds_t)base->pfd_high + 1, timeout);
switch (nready) {
case -1:
/* Error: EINTR (signal) or EINVAL (nfds > RLIMIT_NOFILE) */