# wasm: fix regression of C ABI · gitcafe/zig

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

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

Visibility: public

Requested revision: 221295b7db97c78ffce39e64dd6cafd8ad0b3f9a

Requested commit: 221295b7db97c78ffce39e64dd6cafd8ad0b3f9a

Commit: 221295b7db97c78ffce39e64dd6cafd8ad0b3f9a

Tree: d41c8344573283da5e5be48e06d4c73662e25ddc

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

````
wasm: fix regression of C ABI

It seems the webassembly backend does not want the exception that
`structFieldAlignmentExtern` makes for 128-bit integers. Perhaps that
logic should be modified to check if the target is wasm.

Without this, this branch fails the C ABI tests for wasm, causing this:
```
wasm-ld: warning: function signature mismatch: zig_struct_u128
>>> defined as (i64, i64) -> void in cfuncs.o
>>> defined as (i32) -> void in test-c-abi-wasm32-wasi-musl-ReleaseFast.wasm.o
```

````

## Parents

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

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