Fix window result and pedantic error (#302)

* Fix result for close button in WindowBox

* Fix pedantic error, void* cast
This commit is contained in:
Furu 2023-07-12 16:23:45 +02:00 committed by GitHub
parent 89f9d94c6b
commit 848569ce33
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 = (unsigned char*)RAYGUI_MALLOC(recsDataCompressedSize);
unsigned char *recsDataCompressed = (unsigned char *)RAYGUI_MALLOC(recsDataCompressedSize);
memcpy(recsDataCompressed, fileDataPtr, recsDataCompressedSize);
fileDataPtr += recsDataCompressedSize;