# wasm: \`memcpy\` support elem abi-size \> 1 · gitcafe/zig

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

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

Visibility: public

Requested revision: 00dedabc41322bc2b4978ddc39ee17b72193f194

Requested commit: 00dedabc41322bc2b4978ddc39ee17b72193f194

Commit: 00dedabc41322bc2b4978ddc39ee17b72193f194

Tree: 7efb90f93aca22dd4b1a7dbdd1f0c1e3e0b6c85c

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: `memcpy` support elem abi-size > 1

Previously it was incorrectly assumed that all memcopy's generated by
the `memcpy` AIR instruction had an element size of 1 byte. However,
this would result in miscompilations for pointer's to arrays where
the element size of the array was larger than 1 byte. We now corectly
calculate this size.

```

## Parents

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

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