diff options
author | Martin Fiedler <martin.fiedler@dreamchip.de> | 2023-11-30 17:58:46 +0300 |
---|---|---|
committer | Martin Fiedler <martin.fiedler@dreamchip.de> | 2023-11-30 17:58:46 +0300 |
commit | 87032dd9c379892e08bba71c647bdaca793aee3c (patch) | |
tree | 56e347be8baededa8d40698bd791ab0b8379b9bc | |
parent | 50c8950929e7211fab98ec079dd0b89361900aa3 (diff) |
fixed MSVC build warnings for plain C too
-rw-r--r-- | lodepng.cpp | 2 | ||||
-rw-r--r-- | lodepng.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lodepng.cpp b/lodepng.cpp index cc24785..4afbb54 100644 --- a/lodepng.cpp +++ b/lodepng.cpp @@ -1439,7 +1439,7 @@ static unsigned inflatev(ucvector* out, const unsigned char* in, size_t insize, /* / Deflator (Compressor) / */ /* ////////////////////////////////////////////////////////////////////////// */ -static const size_t MAX_SUPPORTED_DEFLATE_LENGTH = 258; +static const unsigned MAX_SUPPORTED_DEFLATE_LENGTH = 258; /*search the index in the array, that has the largest value smaller than or equal to the given value, given array must be sorted (if no value is smaller, it returns the size of the given array)*/ @@ -1001,7 +1001,7 @@ and data separately. The type is a 4-letter string. The out variable and outsize are updated to reflect the new reallocated buffer. Returne error code (0 if it went ok) */ -unsigned lodepng_chunk_create(unsigned char** out, size_t* outsize, unsigned length, +unsigned lodepng_chunk_create(unsigned char** out, size_t* outsize, size_t length, const char* type, const unsigned char* data); |