summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-02-05 14:35:43 +0100
committerraysan5 <[email protected]>2021-02-05 14:35:43 +0100
commit421e5d4829be46f131efadb00797cbf6aa22ea72 (patch)
treebb394ff777c30729528e75cd94ff4e2c2310fcb1
parente831bf02c5eb2b1d841b554e43782a2f5482cdc8 (diff)
downloadraylib-421e5d4829be46f131efadb00797cbf6aa22ea72.tar.gz
raylib-421e5d4829be46f131efadb00797cbf6aa22ea72.zip
REVIEWED: DecompressData()
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 51bb202f..20fb06f6 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2594,7 +2594,7 @@ unsigned char *CompressData(unsigned char *data, int dataLength, int *compDataLe
// Decompress data (DEFLATE algorythm)
unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *dataLength)
{
- char *data = NULL;
+ unsigned char *data = NULL;
#if defined(SUPPORT_COMPRESSION_API)
// Decompress data from a valid DEFLATE stream
@@ -2610,7 +2610,7 @@ unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *
TraceLog(LOG_INFO, "SYSTEM: Data compressed: Original size: %i -> Comp. size: %i\n", dataLength, compDataLength);
#endif
- return (unsigned char *)data;
+ return data;
}
// Save integer value to storage file (to defined position)