# ability to implicitly cast integer literal to &const Int · gitcafe/zig

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

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

Visibility: public

Requested revision: f7e9d7aa5d115a6a8158625cd1aceb7e8dafe880

Requested commit: f7e9d7aa5d115a6a8158625cd1aceb7e8dafe880

Commit: f7e9d7aa5d115a6a8158625cd1aceb7e8dafe880

Tree: a6a7ef8030a4b44d4b87b8e04fe7002c006ce381

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
ability to implicitly cast integer literal to &const Int

where Int is an integer type

also introduce `@intToPtr` builtin for converting a usize
to a pointer. users now have to use this instead of `(&T)(int)`.

closes #311

```

## Parents

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

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