# Fix stack-trace address calculation on Windows · gitcafe/zig

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

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

Visibility: public

Requested revision: 7336b750bd5e3c271a654e6d44d572cf0427a0b1

Requested commit: 7336b750bd5e3c271a654e6d44d572cf0427a0b1

Commit: 7336b750bd5e3c271a654e6d44d572cf0427a0b1

Tree: 9f9432d563b33115ca4c2dc12ca59cfcb81b3fe1

Author: LemonBoy

Committer: LemonBoy

## Message

```
Fix stack-trace address calculation on Windows

Let's always subtract 1 from the return address so that we're sure to be
inside the callee.

Fixes some edge case where the stack trace skipped the first entry.

```

## Parents

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

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