# std: ppoll: cast number of fds to nfds_t · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/3534f8a3eda03c412e71970fa1f1ce9de49404b7)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 3534f8a3eda03c412e71970fa1f1ce9de49404b7

Requested commit: 3534f8a3eda03c412e71970fa1f1ce9de49404b7

Commit: 3534f8a3eda03c412e71970fa1f1ce9de49404b7

Tree: c2dfc97ce8c30776815e8ee2672d7f7759de86bf

Author: Gregory Anders

Committer: Andrew Kelley

## Message

```
std: ppoll: cast number of fds to nfds_t

On some systems, the type of the length of a slice is different from the
nfds_t type, so cast the slice length to nfds_t. This is already done in
poll, so just copy that implementation for ppoll.

```

## Parents

- [082072bd4f4613e798068370681c269860785cbf](https://git.cafe/gitcafe/zig/commit/082072bd4f4613e798068370681c269860785cbf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/3534f8a3eda03c412e71970fa1f1ce9de49404b7?format=markdown)
