# Fix a type error in std.os.linux.getpid\(\) \(\#1326\) · gitcafe/zig

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

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

Visibility: public

Requested revision: dcaaa241dfb7ce77b7070df8d6a939a9f0749e2c

Requested commit: dcaaa241dfb7ce77b7070df8d6a939a9f0749e2c

Commit: dcaaa241dfb7ce77b7070df8d6a939a9f0749e2c

Tree: 64041d0e295206b5dd9653e8fdb3ad472bdab2a6

Author: Matthew D\. Steele

Committer: Andrew Kelley

## Message

```
Fix a type error in std.os.linux.getpid() (#1326)

syscall0() returns usize, but we were trying to @bitCast to i32.
```

## Parents

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

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