# wasm: memset \- correctly load the ptr for slices · gitcafe/zig

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

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

Visibility: public

Requested revision: b93fa9833e6d2f7959eabb2417a154152a8d2d1c

Requested commit: b93fa9833e6d2f7959eabb2417a154152a8d2d1c

Commit: b93fa9833e6d2f7959eabb2417a154152a8d2d1c

Tree: 4ba806a2ca4684d1ae4db0c2e9f55eabcdca53c3

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: memset - correctly load the ptr for slices

Previously we would use the address of the slice itself, which would
result in miscompilations and accidently setting the memory region
of the slice itself, rather than based on the `ptr` field.

```

## Parents

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

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