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

Fix README code example compile error #81

Merged
merged 1 commit into from
Feb 6, 2023
Merged

Fix README code example compile error #81

merged 1 commit into from
Feb 6, 2023

Conversation

JellevanKraaij
Copy link
Contributor

Fixes the following compiler warning in the code example "warning: passing 'const mlx_t *' (aka 'const struct mlx *') to parameter of type 'mlx_t *'"

It could as well be changed to mlx_t* const mlx = param; to make it a constant pointer instead of a pointer to constant.
I guess without is better to prevent some confusion, pointers are hard enough!

@W2Wizard W2Wizard added Documentation Improvements or additions to documentation Fix Fixed or resolved an issue labels Feb 6, 2023
@W2Wizard W2Wizard changed the title fix README code example compile error Fix README code example compile error Feb 6, 2023
@W2Wizard W2Wizard merged commit 8c9d65f into codam-coding-college:master Feb 6, 2023
@JellevanKraaij JellevanKraaij deleted the patch-2 branch February 6, 2023 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation Fix Fixed or resolved an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants