Update raygui.h (#301)

Cast malloc to unsigned char* for C++
This commit is contained in:
manuel5975p 2023-07-12 16:00:37 +02:00 committed by GitHub
parent 670a5deb48
commit b850edc733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4174,7 +4174,7 @@ static void GuiLoadStyleFromMemory(const unsigned char *fileData, int dataSize)
if ((recsDataCompressedSize > 0) && (recsDataCompressedSize != recsDataSize))
{
// Recs data is compressed, uncompress it
unsigned char *recsDataCompressed = RAYGUI_MALLOC(recsDataCompressedSize);
unsigned char *recsDataCompressed = (unsigned char*)RAYGUI_MALLOC(recsDataCompressedSize);
memcpy(recsDataCompressed, fileDataPtr, recsDataCompressedSize);
fileDataPtr += recsDataCompressedSize;