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

This commit is contained in:
DarkAssassin23 2024-05-29 11:22:59 -04:00 committed by GitHub
parent 2e38069475
commit 2804e75869
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1093,8 +1093,8 @@ bool ExportFontAsCode(Font font, const char *fileName)
#else
byteCount += sprintf(txtData + byteCount, " // Assign glyph recs and info data directly\n");
byteCount += sprintf(txtData + byteCount, " // WARNING: This font data must not be unloaded\n");
byteCount += sprintf(txtData + byteCount, " font.recs = fontRecs_%s;\n", fileNamePascal);
byteCount += sprintf(txtData + byteCount, " font.glyphs = fontGlyphs_%s;\n\n", fileNamePascal);
byteCount += sprintf(txtData + byteCount, " font.recs = (Rectangle *)fontRecs_%s;\n", fileNamePascal);
byteCount += sprintf(txtData + byteCount, " font.glyphs = (GlyphInfo *)fontGlyphs_%s;\n\n", fileNamePascal);
#endif
byteCount += sprintf(txtData + byteCount, " return font;\n");
byteCount += sprintf(txtData + byteCount, "}\n");