# Fix parsing of \`unsigned\` in translate-c\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 442025481c40625f8010355d2790935e5add0db5

Requested commit: 442025481c40625f8010355d2790935e5add0db5

Commit: 442025481c40625f8010355d2790935e5add0db5

Tree: 6b97bea31427e2df675bfec4871977fb4abcf3b0

Author: Henrik Laxhuber

Committer: Veikka Tuominen

## Message

```
Fix parsing of `unsigned` in translate-c.

Previously, `unsigned` was parsed as the shorthand for `unsigned int`.
This commit introduces code to parse `unsigned short`, `unsigned int`,
`unsigned long`, and `unsigned long long`.

There is a comment in the code about std.c.parse` - Im not
familiar with zig internals, but it seems like this is a separate
C parsing implementation. In the long run, it probably makes
sense to merge both implementations, so this commit should be
regarded as a quick fix that doesn't address an apparently
underlying issue.

```

## Parents

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

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