# Fixed intToPtr to fn type when the address is hardcoded \(\#1842\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 45e72c0b3944b2fa6d06c7018e9648b4ae60006a

Requested commit: 45e72c0b3944b2fa6d06c7018e9648b4ae60006a

Commit: 45e72c0b3944b2fa6d06c7018e9648b4ae60006a

Tree: 10e8ac90465e7bb81005607890b1caf2c4d47e1a

Author: Jimmi Holst Christensen

Committer: Andrew Kelley

## Message

```
Fixed intToPtr to fn type when the address is hardcoded (#1842)

* Fixed intToPtr to fn type

* Added test

* Import inttoptr.zig in behavior.zig

```

## Parents

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

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