# std: Add helpers to safely align pointers · gitcafe/zig

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

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

Visibility: public

Requested revision: 7ca86936caf7d206248ca6862f23ac25e4b1d327

Requested commit: 7ca86936caf7d206248ca6862f23ac25e4b1d327

Commit: 7ca86936caf7d206248ca6862f23ac25e4b1d327

Tree: 633573fb3d758a7c58c7e00b5731847e5c0e5f64

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
std: Add helpers to safely align pointers

Add two helpers to ensure people won't ignore some edge cases such as
pointers overflowing the address space.

Also fix #8924 to some degree, the amount of unchecked alignForward is
still scary.

Revert "tests: disable i386-linux-gnu -lc target due to CI failures"

This reverts commit 97a2f4e7ae9c52c595841347bb0b26572b180dcf.

```

## Parents

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

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