# codegen: Write padding bytes for unions · gitcafe/zig

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

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

Visibility: public

Requested revision: ebfd3450d9a3338726e1ed8b08a5751b06604cd5

Requested commit: ebfd3450d9a3338726e1ed8b08a5751b06604cd5

Commit: ebfd3450d9a3338726e1ed8b08a5751b06604cd5

Tree: a74bf6ee7003cb7dbba333866619829c85c58659

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
codegen: Write padding bytes for unions

Previously we did not write any missing padding bytes after the smallest
field (either tag or payload, depending on alignment). This resulted in
writing too few bytes and not matching the full abisize of the union.

```

## Parents

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

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