# fix \`@bitCast\` when src/dest types have mismatched handle_is_ptr · gitcafe/zig

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

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

Visibility: public

Requested revision: 0c5f8979045ff05e713bb1b7341496012189650f

Requested commit: 0c5f8979045ff05e713bb1b7341496012189650f

Commit: 0c5f8979045ff05e713bb1b7341496012189650f

Tree: b1a1fe8b16d544fb3fb5e6f25858204b21f52b34

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix `@bitCast` when src/dest types have mismatched handle_is_ptr

 * separate BitCast and BitCastGen instructions
 * closes #991
 * closes #1934
 * unrelated: fix typo in docs (thanks gamester for pointing it out)

```

## Parents

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

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