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:
-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);