# riscv: implement a basic \`@intCast\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 3c0015c82889eff557cb937b655eccaaa7ecd01b

Requested commit: 3c0015c82889eff557cb937b655eccaaa7ecd01b

Commit: 3c0015c82889eff557cb937b655eccaaa7ecd01b

Tree: 1308bdd01e13736c836e060a1b4111d33121e245

Author: David Rubin

Committer: David Rubin

## Message

```
riscv: implement a basic `@intCast`

the truncation panic logic is generated in Sema, so I don't need to roll anything
of my own. I add all of the boilerplate for that detecting the truncation and it works
in basic test cases!

```

## Parents

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

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