Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lvandeve/lodepng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fiedler <martin.fiedler@dreamchip.de>2023-11-30 17:58:46 +0300
committerMartin Fiedler <martin.fiedler@dreamchip.de>2023-11-30 17:58:46 +0300
commit87032dd9c379892e08bba71c647bdaca793aee3c (patch)
tree56e347be8baededa8d40698bd791ab0b8379b9bc
parent50c8950929e7211fab98ec079dd0b89361900aa3 (diff)
fixed MSVC build warnings for plain C too
-rw-r--r--lodepng.cpp2
-rw-r--r--lodepng.h2
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)*/
diff --git a/lodepng.h b/lodepng.h
index 81d4985..3f3649d 100644
--- a/lodepng.h
+++ b/lodepng.h
@@ -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);