diff --git a/ANNOUNCE b/ANNOUNCE index 1dc6e2576..8cbf646d8 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -301,7 +301,8 @@ Version 1.6.0beta17 [March 10, 2012] Version 1.6.0beta18 [March 11, 2012] Issue a png_benign_error() instead of png_warning() about bad palette index. In pngtest, treat benign errors as errors if "-strict" is present. - Fix an off-by-one error in the palette index checking function. + Fixed an off-by-one error in the palette index checking function. + Fixed a compiler warning under Cygwin (Windows-7, 32-bit system) Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index 21b3f58a9..ea8437152 100644 --- a/CHANGES +++ b/CHANGES @@ -4052,7 +4052,8 @@ Version 1.6.0beta17 [March 10, 2012] Version 1.6.0beta18 [March 11, 2012] Issue a png_benign_error() instead of png_warning() about bad palette index. In pngtest, treat benign errors as errors if "-strict" is present. - Fix an off-by-one error in the palette index checking function. + Fixed an off-by-one error in the palette index checking function. + Fixed a compiler warning under Cygwin (Windows-7, 32-bit system) Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/contrib/libtests/pngvalid.c b/contrib/libtests/pngvalid.c index eb0504cb1..6e454d4c0 100644 --- a/contrib/libtests/pngvalid.c +++ b/contrib/libtests/pngvalid.c @@ -4653,8 +4653,8 @@ standard_check_text(png_const_structp pp, png_const_textp tp, if (tp->text_length != strlen(text)) { char buf[64]; - sprintf(buf, "text length changed[%lu->%lu], ", strlen(text), - tp->text_length); + sprintf(buf, "text length changed[%lu->%lu], ", + (unsigned long)strlen(text), (unsigned long)tp->text_length); pos = safecat(msg, sizeof msg, pos, buf); }