summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2019-09-15 11:15:33 +0200
committerraysan5 <[email protected]>2019-09-15 11:15:33 +0200
commit08165fed1884c9f8499ea1463b7e6831105ca52b (patch)
tree569f86decfd295120d6adc95842217cfaff5a8b3 /src/core.c
parent112874fe07ae896bf068b20430489f6665b611f5 (diff)
downloadraylib-08165fed1884c9f8499ea1463b7e6831105ca52b.tar.gz
raylib-08165fed1884c9f8499ea1463b7e6831105ca52b.zip
Review DecompressData() types, for consistency
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index 4bdceb85..305eb33c 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2056,15 +2056,15 @@ unsigned char *CompressData(unsigned char *data, int dataLength, int *compDataLe
}
// Decompress data (DEFLATE algorythm)
-char *DecompressData(char *compData, int compDataLength, int *dataLength)
+unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *dataLength)
{
char *data = NULL;
#if defined(SUPPORT_COMPRESSION_API)
- data = stbi_zlib_decode_malloc(compData, compDataLength, dataLength);
+ data = stbi_zlib_decode_malloc((char *)compData, compDataLength, dataLength);
#endif
- return data;
+ return (unsigned char *)data;
}
// Save integer value to storage file (to defined position)