# stage2: fix the build for 32-bit architectures · gitcafe/zig

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

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

Visibility: public

Requested revision: 6afcaf4a08b6fb1cce0cdb2393fc1d4cd041509c

Requested commit: 6afcaf4a08b6fb1cce0cdb2393fc1d4cd041509c

Commit: 6afcaf4a08b6fb1cce0cdb2393fc1d4cd041509c

Tree: bf4a17c51d53b720077e8315c5d0a38f20eba219

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix the build for 32-bit architectures

 * Introduce a mechanism into Sema for emitting a compile error when an
   integer is too big and we need it to fit into a usize.
 * Add `@intCast` where necessary
 * link/MachO: fix an unnecessary allocation when all that was happening
   was appending zeroes to an ArrayList.
 * Add `error.Overflow` as a possible error to some codepaths, allowing
   usage of `math.intCast`.

closes #9710

```

## Parents

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

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