summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLode <lvandeve@gmail.com>2014-12-01 01:34:17 +0100
committerLode <lvandeve@gmail.com>2014-12-01 01:34:17 +0100
commit3212409222e5a51a5ed4062a27034933d3599464 (patch)
tree29b01016dcdf59e8a830d18bbbb2252b099a4622
parent88a62942a142dc5a922e7d25b231bca057c613cd (diff)
tiny tweaks
-rw-r--r--lodepng.cpp5
-rw-r--r--lodepng_unittest.cpp2
2 files changed, 4 insertions, 3 deletions
diff --git a/lodepng.cpp b/lodepng.cpp
index af18a00..e1dc66d 100644
--- a/lodepng.cpp
+++ b/lodepng.cpp
@@ -2167,9 +2167,10 @@ unsigned lodepng_zlib_compress(unsigned char** out, size_t* outsize, const unsig
/*initially, *out must be NULL and outsize 0, if you just give some random *out
that's pointing to a non allocated buffer, this'll crash*/
ucvector outv;
+ size_t i;
unsigned error;
unsigned char* deflatedata = 0;
- size_t deflatesize = 0, i;
+ size_t deflatesize = 0;
/*zlib data: 1 byte CMF (CM+CINFO), 1 byte FLG, deflate data, 4 byte ADLER32 checksum of the Decompressed data*/
unsigned CMF = 120; /*0b01111000: CM 8, CINFO 7. With CINFO 7, any window size up to 32768 can be used.*/
@@ -3678,7 +3679,7 @@ unsigned lodepng_auto_choose_color(LodePNGColorMode* mode_out,
{
LodePNGColorProfile prof;
unsigned error = 0;
- unsigned n, i, palettebits, grey_ok, palette_ok;
+ unsigned i, n, palettebits, grey_ok, palette_ok;
lodepng_color_profile_init(&prof);
error = lodepng_get_color_profile(&prof, image, w, h, mode_in);
diff --git a/lodepng_unittest.cpp b/lodepng_unittest.cpp
index 56fc61e..97aa8f8 100644
--- a/lodepng_unittest.cpp
+++ b/lodepng_unittest.cpp
@@ -75,7 +75,7 @@ valgrind --leak-check=full --track-origins=yes ./a.out
*) remove "#include <iostream>" from lodepng.cpp if it's still in there
cat lodepng.cpp | grep iostream
-*) check version dates in copyright message and "#define VERSION_STRING"
+*) check version dates in copyright message and "#define LODEPNG_VERSION_STRING"
*) check year in copyright message at top of all files as well as at bottom of lodepng.h