# codegen: cmp lowering treats bools the same as unsigned int · gitcafe/zig

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

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

Visibility: public

Requested revision: 1f95c50d9a0c4c057780d387d57ac2ac40df1720

Requested commit: 1f95c50d9a0c4c057780d387d57ac2ac40df1720

Commit: 1f95c50d9a0c4c057780d387d57ac2ac40df1720

Tree: bf3f4560a5264f11902760dcb4ebf638b4f2e6b8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
codegen: cmp lowering treats bools the same as unsigned int

fixes a crash when lowering `a == b` and they are of type bool.
I'm not worried about floats; I think we will probably add separate AIR
instructions for floats.

```

## Parents

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

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