Browse Source

Update raygui.h

Ray 2 years ago
parent
commit
d54103a1c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/raygui.h

+ 1 - 1
src/raygui.h

@@ -4214,7 +4214,7 @@ static void GuiLoadStyleFromMemory(const unsigned char *fileData, int dataSize)
                 if ((glyphsDataCompressedSize > 0) && (glyphsDataCompressedSize != glyphsDataSize))
                 if ((glyphsDataCompressedSize > 0) && (glyphsDataCompressedSize != glyphsDataSize))
                 {
                 {
                     // Glyphs data is compressed, uncompress it
                     // Glyphs data is compressed, uncompress it
-                    unsigned char *glypsDataCompressed = RAYGUI_MALLOC(glyphsDataCompressedSize);
+                    unsigned char *glypsDataCompressed = (unsigned char *)RAYGUI_MALLOC(glyphsDataCompressedSize);
 
 
                     memcpy(glypsDataCompressed, fileDataPtr, glyphsDataCompressedSize);
                     memcpy(glypsDataCompressed, fileDataPtr, glyphsDataCompressedSize);
                     fileDataPtr += glyphsDataCompressedSize;
                     fileDataPtr += glyphsDataCompressedSize;