# stage1: Fix missing runtime safety check for intToPtr · gitcafe/zig

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

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

Visibility: public

Requested revision: 0570df69b178c99f4d9d679a57d966f507dda484

Requested commit: 0570df69b178c99f4d9d679a57d966f507dda484

Commit: 0570df69b178c99f4d9d679a57d966f507dda484

Tree: 7114064614b422868b1fa73f78d7b74c6b27a33d

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
stage1: Fix missing runtime safety check for intToPtr

Elide the alignment check if the pointer alignment is one, the null
check must be preserved as it depends on the pointer type.

Fixes #6667

```

## Parents

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

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