# translate-c: Support compound assignment of pointer and signed int · gitcafe/zig

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

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

Visibility: public

Requested revision: 6d69a29d753de8680ff1220b8d9127e890e7d965

Requested commit: 6d69a29d753de8680ff1220b8d9127e890e7d965

Commit: 6d69a29d753de8680ff1220b8d9127e890e7d965

Tree: 141db1ed1e331010b8c87e005a9f54fc2612d06f

Author: Evan Haas

Committer: Veikka Tuominen

## Message

```
translate-c: Support compound assignment of pointer and signed int

This handles `ptr += idx` and `ptr -= idx` when `idx` is a
signed integer expression.

```

## Parents

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

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