# Sema: allow \`@ptrCast\` of slices changing the length · gitcafe/zig

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

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

Visibility: public

Requested revision: 5e20e9b4491dead0c56d9b0351677d5832058673

Requested commit: 5e20e9b4491dead0c56d9b0351677d5832058673

Commit: 5e20e9b4491dead0c56d9b0351677d5832058673

Tree: 1b397bf48ac85822b52895439015f79b2372cadc

Author: mlugg

Committer: Matthew Lugg

## Message

```
Sema: allow `@ptrCast` of slices changing the length

Also, refactor `Sema.ptrCastFull` to not be a horrifying hellscape.

```

## Parents

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

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