# AstGen: fix OoB crash on \`ast-check \-t\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 723d13f8314a88f75a1068db7408677d8cc0c165

Requested commit: 723d13f8314a88f75a1068db7408677d8cc0c165

Commit: 723d13f8314a88f75a1068db7408677d8cc0c165

Tree: a23f97fa74b8ef4f9bb198770909e3bb0bb0dd26

Author: John Schmidt

Committer: Matthew Lugg

## Message

```
AstGen: fix OoB crash on `ast-check -t`

The `decl_node` was offset from the wrong source node.

```

## Parents

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

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