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

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

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

Visibility: public

Requested revision: 4f0aa7d639e099b18df583cb984412037fbb1dbe

Requested commit: 4f0aa7d639e099b18df583cb984412037fbb1dbe

Commit: 4f0aa7d639e099b18df583cb984412037fbb1dbe

Tree: 1ef3e04948909487d22bce82d65d96d362ec4001

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

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

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