# stage2: fix Type max/min int calculation · gitcafe/zig

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

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

Visibility: public

Requested revision: ac2333ee63b3c0af8a075d325e2313c9b255a46e

Requested commit: ac2333ee63b3c0af8a075d325e2313c9b255a46e

Commit: ac2333ee63b3c0af8a075d325e2313c9b255a46e

Tree: 8e5d07a4aaa946c1c681428adafde533d58f5c59

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix Type max/min int calculation

This was an attempt to move saturating_arithmetic.zig to the "passing
for stage2" section, which did not pan out due to the discovery of 2
prerequisite items that need to be done, but I did make a bug fix along
the way of the calculation of max/min integers.

This commit also simplifies the saturating arithmetic behavior tests to
depend on less of the zig language that is not related to saturating
arithmetic.

```

## Parents

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

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