# Translate C: Put an alignCast in c style pointer casts to allow opaque types to cast properly in C macros · gitcafe/zig

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

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

Visibility: public

Requested revision: 7b5fb79b5b9625a1c2b7359c6653653a799ca114

Requested commit: 7b5fb79b5b9625a1c2b7359c6653653a799ca114

Commit: 7b5fb79b5b9625a1c2b7359c6653653a799ca114

Tree: bfaec9fbe4aa89dab774b907ed8244501693ff60

Author: Vexu

Committer: Andrew Kelley

## Message

```
Translate C: Put an alignCast in c style pointer casts to allow opaque types to cast properly in C macros

Translate C: add test case for aligning opaque types in pointer casts

```

## Parents

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

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