# Fix abi size of optional slices · gitcafe/zig

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

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

Visibility: public

Requested revision: f763000dc918c2367ebc181645eb48db896205d8

Requested commit: f763000dc918c2367ebc181645eb48db896205d8

Commit: f763000dc918c2367ebc181645eb48db896205d8

Tree: e51b07e48ba4a0e1a138f9e9a9b42a3aa2a4a3b7

Author: Luuk de Gram

Committer: Andrew Kelley

## Message

```
Fix abi size of optional slices

Previously, optional slices returned the pointer size as abi size.
We now account for slices to calculate the correct size which is abi-alignment + slice ABI size.

```

## Parents

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

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