# omit safety check when incrementing for loop counter · gitcafe/zig

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

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

Visibility: public

Requested revision: 12a7a0d76f9435c8c538f762daa79a49ca0470af

Requested commit: 12a7a0d76f9435c8c538f762daa79a49ca0470af

Commit: 12a7a0d76f9435c8c538f762daa79a49ca0470af

Tree: 8286a636fb95665ad30be61653bf74031a3be213

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
omit safety check when incrementing for loop counter

Since for loops are statically analyzed to have an upper bound, and the
loop counter is a usize, it is impossible for it to overflow.

```

## Parents

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

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