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] Added cast to ExportFontAsCode output to fix C++ compiler errors #4013

Merged
merged 1 commit into from
May 29, 2024
Merged

[rtext] Added cast to ExportFontAsCode output to fix C++ compiler errors #4013

merged 1 commit into from
May 29, 2024

Conversation

DarkAssassin23
Copy link
Contributor

Adds casting to the ExportFontAsCode() auto-generated LoadFont function to fix the following compiler errors when using C++:
error: assigning to 'Rectangle *' from incompatible type 'const Rectangle[]'
error: assigning to 'GlyphInfo *' from incompatible type 'const GlyphInfo[]

@raysan5 raysan5 merged commit 2804e75 into raysan5:master May 29, 2024
@raysan5
Copy link
Owner

raysan5 commented May 29, 2024

@DarkAssassin23 It looks like more like a warning than an error, I'm merging it but I'm afraid similar issues could happen with other similar functions and I have no plans to cast everything around for that kind of compiler complaints...

raysan5 added a commit that referenced this pull request May 29, 2024
@raysan5
Copy link
Owner

raysan5 commented May 29, 2024

After reviewing the function more carefully, I just removed the const from the static arrays.

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