# Fix translation of signed array indices \(\#4113\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 3f98756f8542e5ca6b45322f17eb59b74706fb62

Requested commit: 3f98756f8542e5ca6b45322f17eb59b74706fb62

Commit: 3f98756f8542e5ca6b45322f17eb59b74706fb62

Tree: 609251a690623f262f5657b7cd649bd7cccb0e9d

Author: travisstaloch

Committer: Andrew Kelley

## Message

```
Fix translation of signed array indices (#4113)

* cast only if the index is long long or signed
* cast long long to usize rather than c_uint

closes #4075
```

## Parents

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

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