# wasm: correctly intcast signed integers · gitcafe/zig

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

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

Visibility: public

Requested revision: 619140c0d2abd22da668747820f0ee80b497eb24

Requested commit: 619140c0d2abd22da668747820f0ee80b497eb24

Commit: 619140c0d2abd22da668747820f0ee80b497eb24

Tree: 9ea7d8506956202bc7560d87990b8f47b424b881

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: correctly intcast signed integers

When a signed integer's bitsize is not 32 or 64, but the given
bitsize and wanted bitsize are either both represented by Wasm's i32
or i64, we must either sign extend or wrap the integer.

```

## Parents

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

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