Skip to content

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