# Translate-c fix rhs not cast on array access · gitcafe/zig

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

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

Visibility: public

Requested revision: 70cc1751ca69dd77625c703445713d067215b5d9

Requested commit: 70cc1751ca69dd77625c703445713d067215b5d9

Commit: 70cc1751ca69dd77625c703445713d067215b5d9

Tree: 2cf83a064f93a958055b4f0e5278586a77260204

Author: Ian Simonson

Committer: Veikka Tuominen

## Message

```
Translate-c fix rhs not cast on array access

Closes #5671. Checks if the rhs is integral and of
differing or the same signedness. If they are different
does an @intCast to the lhs type

```

## Parents

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

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