# Sema: fix \`@ptrCast\` from slices · gitcafe/zig

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

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

Visibility: public

Requested revision: 1678825c1450b29a1016bba62511388b3e539cd8

Requested commit: 1678825c1450b29a1016bba62511388b3e539cd8

Commit: 1678825c1450b29a1016bba62511388b3e539cd8

Tree: aa94ac0ac79ca5c48c15c83cf365d847f01ff2ed

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: fix `@ptrCast` from slices

Also, fix allocations in comptime contexts with alignments.

```

## Parents

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

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