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

Latest Zig infers casts using result type #828

Closed
wants to merge 1 commit into from

Conversation

razcore-rad
Copy link
Contributor

This Zig PR changes the way casts work in Zig.

This mach-glfw PR updates the code using the new syntax.

For more details about this change in Zig check out the official wiki.

  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.

This [Zig PR](ziglang/zig#16163) changes
the way casts work in Zig.

This mach-glfw PR updates the code using the new syntax.

For more details about this change in Zig check out [the official wiki](https://github.com/ziglang/zig/wiki/Using-Cast-Result-Type-Inference).
@emidoots
Copy link
Member

In general I cannot review such auto-generated PRs, it's faster for me to run zig fmt myself. Thanks though.

@emidoots emidoots closed this Jun 29, 2023
@razcore-rad
Copy link
Contributor Author

This wasn't auto generated, but sure I get it

@emidoots
Copy link
Member

Gotcha. 'zig fmt' produces the same changes FYI (typically zig changes like this that affect everything, zig fmt will do the job of updating your code 90% of the way)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants