Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate-c: don't bother with unwrapping pointers #9100

Merged
merged 1 commit into from
Jun 13, 2021

Conversation

Vexu
Copy link
Member

@Vexu Vexu commented Jun 13, 2021

Dereferencing a c pointer implicitly includes an unwrap,
manually adding it just causes bugs.

Closes #8322
Closes #8617

Dereferencing a c pointer implicitly includes an unwrap,
manually adding it just causes bugs.
@Vexu Vexu added the translate-c C to Zig source translation feature (@cImport) label Jun 13, 2021
@Vexu Vexu merged commit 6664679 into ziglang:master Jun 13, 2021
@Vexu Vexu deleted the translate-c-deref branch June 13, 2021 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
translate-c C to Zig source translation feature (@cImport)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

translate-c: assignment to dereferenced address-of produces invalid Zig
1 participant