# wasm: Fix C-ABI for 128 bit integers · gitcafe/zig

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

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

Visibility: public

Requested revision: 502f5d824626675aecf9daaaf6af7548ef3e7f09

Requested commit: 502f5d824626675aecf9daaaf6af7548ef3e7f09

Commit: 502f5d824626675aecf9daaaf6af7548ef3e7f09

Tree: 9c51f320b38c551a6d72f13be5e326e1c3dea34c

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Fix C-ABI for 128 bit integers

We now pass the correct wasm type when the return type is a 128-bit integer.
When a function accepts a 128-bit integer, we now allocate space on the virtual stack
and store both arguments within that space as currently all following instructions
assume the 128 bit integer doesn't live in a local, but the stack.

```

## Parents

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

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