# langref: docs for invalid error set cast and incorrect pointer alignment · gitcafe/zig

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

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

Visibility: public

Requested revision: 2ee67b7642cfeef36d8ebbc08080202b5b1d1958

Requested commit: 2ee67b7642cfeef36d8ebbc08080202b5b1d1958

Commit: 2ee67b7642cfeef36d8ebbc08080202b5b1d1958

Tree: d031afb8e49237cf040b8fe4c2af72ab86239abd

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
langref: docs for invalid error set cast and incorrect pointer alignment

also add detection of incorrect pointer alignment at compile-time
of pointers that were constructed with `@intToPtr`.

```

## Parents

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

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