# AstGen: fix ZIR struct encoding · gitcafe/zig

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

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

Visibility: public

Requested revision: ccdba774c84e2b3c7f650e27f430c9a3eed78fd3

Requested commit: ccdba774c84e2b3c7f650e27f430c9a3eed78fd3

Commit: ccdba774c84e2b3c7f650e27f430c9a3eed78fd3

Tree: 5991dfbd6ebcfedfb403bdb414ad0571873a74b7

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: fix ZIR struct encoding

off by one error in the bits that describe defaults/field alignments
as soon as we have tests for struct field alignment and default values,
there will be coverage for this.

```

## Parents

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

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