From 08165fed1884c9f8499ea1463b7e6831105ca52b Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 15 Sep 2019 11:15:33 +0200 Subject: [PATCH] Review DecompressData() types, for consistency --- src/core.c | 6 +++--- src/raylib.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core.c b/src/core.c index 4bdceb851..305eb33cf 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) diff --git a/src/raylib.h b/src/raylib.h index d90dedf07..65210d475 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -956,8 +956,8 @@ RLAPI char **GetDroppedFiles(int *count); // Get dropped RLAPI void ClearDroppedFiles(void); // Clear dropped files paths buffer (free memory) RLAPI long GetFileModTime(const char *fileName); // Get file modification time (last write time) -RLAPI unsigned char *CompressData(unsigned char *data, int dataLength, int *compDataLength); // Compress data (DEFLATE algorythm) -RLAPI char *DecompressData(char *compData, int compDataLength, int *dataLength); // Decompress data (DEFLATE algorythm) +RLAPI unsigned char *CompressData(unsigned char *data, int dataLength, int *compDataLength); // Compress data (DEFLATE algorythm) +RLAPI unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *dataLength); // Decompress data (DEFLATE algorythm) // Persistent storage management RLAPI void StorageSaveValue(int position, int value); // Save integer value to storage file (to defined position)