# translate-c: Explicitly cast decayed array to pointer with @ptrCast · gitcafe/zig

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

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

Visibility: public

Requested revision: d01bb211732f1d0aebf558c43825a52254d034ab

Requested commit: d01bb211732f1d0aebf558c43825a52254d034ab

Commit: d01bb211732f1d0aebf558c43825a52254d034ab

Tree: f4f63c44a7c678ba13706c8fcb18190afe33ffb4

Author: Evan Haas

Committer: Veikka Tuominen

## Message

```
translate-c: Explicitly cast decayed array to pointer with @ptrCast

This enables translation of code that uses pointer arithmetic with arrays

```

## Parents

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

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