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

[rtext] fix: misuse of cast in GetCodepointCount #4741

Conversation

sleeptightAnsiC
Copy link
Contributor

I was really wondering what is going on here :D I believe this code tried initially to out-cast 'const' specifier but this is not needed here at all. Currently, it just confuses whoever reads this so I changed it. The old code would also trigger -Wcast-qual warning on some compilers.

Tested on Linux with latest branch.

I was really wondering what is going on here :D I believe this code
tried initially to out-cast 'const' specifier but this is not needed here
at all. Currently, it just confuses whoever reads this so I changed it.
The old code would also trigger -Wcast-qual warning on some compilers.
@raysan5 raysan5 merged commit 99dfec0 into raysan5:master Jan 31, 2025
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Jan 31, 2025

@sleeptightAnsiC Thanks for the review! I don't know why it was coded that 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