# Sema: fix type check in \`zirIntToPtr\` · gitcafe/zig

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

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

Visibility: public

Requested revision: bc7687382784c94c24d9ff4ebe10b03916d81e7c

Requested commit: bc7687382784c94c24d9ff4ebe10b03916d81e7c

Commit: bc7687382784c94c24d9ff4ebe10b03916d81e7c

Tree: d2e8e29fecc41a7201a5a1d9f819dcf3e8c6d08e

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
Sema: fix type check in `zirIntToPtr`

Simple fix: don't assume a ptr type before it has been checked.

Closes #13567

```

## Parents

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

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