# ir: Fix erroneous error message for ptr casts · gitcafe/zig

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

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

Visibility: public

Requested revision: 6c05f0949aa09ac41268097161bacf8dc047e195

Requested commit: 6c05f0949aa09ac41268097161bacf8dc047e195

Commit: 6c05f0949aa09ac41268097161bacf8dc047e195

Tree: 53dbd5a50a589cd0c93db62e19a4a36f619f3401

Author: LemonBoy

Committer: LemonBoy

## Message

```
ir: Fix erroneous error message for ptr casts

Don't blindly throw an error if two integer types are checked for
compatibility.

Bug reported in #4430

```

## Parents

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

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