# stage2: fix a couple off by one errors · gitcafe/zig

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

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

Visibility: public

Requested revision: ed1e5cb3f62e12f3939e6f20d387a5c205a44a3d

Requested commit: ed1e5cb3f62e12f3939e6f20d387a5c205a44a3d

Commit: ed1e5cb3f62e12f3939e6f20d387a5c205a44a3d

Tree: 716e7c91307a114fbe0434a703a1491a319d5e2a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix a couple off by one errors

All stage2 tests are passing again in this branch.

Remaining checklist for this branch:
 * get the rest of the zig fmt test cases passing
   - re-enable the translate-c test case that is blocking on this
 * implement the 2 `@panic(TODO)`'s in parse.zig
 * use fn_proto not fn_decl for extern function declarations

```

## Parents

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

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