# std: Use truncating cast in WIFSTOPPED for Linux, FreeBSD and DragonFly · gitcafe/zig

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

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

Visibility: public

Requested revision: b3a40743580c1aca6b6f5d212d3b307d4fd1f16b

Requested commit: b3a40743580c1aca6b6f5d212d3b307d4fd1f16b

Commit: b3a40743580c1aca6b6f5d212d3b307d4fd1f16b

Tree: 9ecbcef12adf55c410e8d849762d90073de77dc8

Author: Philip Åkesson

Committer: Andrew Kelley

## Message

```
std: Use truncating cast in WIFSTOPPED for Linux, FreeBSD and DragonFly

The intermediate value can be larger than an u16, so @truncate is needed
to match the behavior of musl.

```

## Parents

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

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