# translate-c: fix logic for checking primitive names · gitcafe/zig

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

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

Visibility: public

Requested revision: d1fd864da7859989828feb8be806634606cc761c

Requested commit: d1fd864da7859989828feb8be806634606cc761c

Commit: d1fd864da7859989828feb8be806634606cc761c

Tree: 8d4bcd3470852ecdd9e9edc5810fa1de1fe31174

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
translate-c: fix logic for checking primitive names

isZigPrimitiveType had a bug where it checked the integer names (e.g.
u32) before primitives, leading it to incorrectly return `false` for
`undefined` which starts with `u`.

Related: #9928

```

## Parents

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

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