# translate-c: fix translation of "ptr \+= uint" · gitcafe/zig

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

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

Visibility: public

Requested revision: ffb1a6d9a75a7c8804c0e9db0e23ac54265f447c

Requested commit: ffb1a6d9a75a7c8804c0e9db0e23ac54265f447c

Commit: ffb1a6d9a75a7c8804c0e9db0e23ac54265f447c

Tree: b305e12bbf1ebbb64e1f9b3289e648c78404da8e

Author: Devin J\. Pohly

Committer: Isaac Freund

## Message

```
translate-c: fix translation of "ptr += uint"

The right-hand side was incorrectly cast to a pointer, since only signed
ints were being interpreted correctly as pointer arithmetic.

Fixes #20285.

```

## Parents

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

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