# wasm: fix abi size of c_longdouble · gitcafe/zig

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

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

Visibility: public

Requested revision: 91dba79c48f0a309e014062f2fe311a5c46b1084

Requested commit: 91dba79c48f0a309e014062f2fe311a5c46b1084

Commit: 91dba79c48f0a309e014062f2fe311a5c46b1084

Tree: bc869dd10ccb9bce56136e238cb4dfd1d9032ff5

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: fix abi size of c_longdouble

According to https://github.com/WebAssembly/tool-conventions/blob/main/BasicCABI.md
the size of c's long double is 16 bytes for Wasm, rather than 8 bytes
which was the value previously in the compiler. This ensures
we not only pass the correct value, but also creates the correct
function signature needed to pass the Wasm validator.

This also adds an additional test case in c_abi tests.

```

## Parents

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

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