[libpng16] Changed integer constant 4294967294 to unsigned 4294967294U in pngconf.h

to avoid a signed/unsigned compare in the preprocessor.
This commit is contained in:
Glenn Randers-Pehrson 2016-10-05 09:23:08 -05:00
parent b3540f9932
commit 7d7694ae6a
3 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,4 @@
Libpng 1.6.26beta05 - October 3, 2016 Libpng 1.6.26beta05 - October 5, 2016
This is not intended to be a public release. It will be replaced This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version. within a few weeks by a public version or by another test version.
@ -61,7 +61,9 @@ Version 1.6.26beta04 [October 3, 2016]
when PNG_USE_ABS is defined. when PNG_USE_ABS is defined.
Fixed offsets in contrib/intel/intel_sse.patch Fixed offsets in contrib/intel/intel_sse.patch
Version 1.6.26beta05 [October 3, 2016] Version 1.6.26beta05 [October 5, 2016]
Changed integer constant 4294967294 to unsigned 4294967294U in pngconf.h
to avoid a signed/unsigned compare in the preprocessor.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -5739,7 +5739,9 @@ Version 1.6.26beta04 [October 3, 2016]
when PNG_USE_ABS is defined. when PNG_USE_ABS is defined.
Fixed offsets in contrib/intel/intel_sse.patch Fixed offsets in contrib/intel/intel_sse.patch
Version 1.6.26beta05 [October 3, 2016] Version 1.6.26beta05 [October 5, 2016]
Changed integer constant 4294967294 to unsigned 4294967294U in pngconf.h
to avoid a signed/unsigned compare in the preprocessor.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -1,7 +1,7 @@
/* pngconf.h - machine configurable file for libpng /* pngconf.h - machine configurable file for libpng
* *
* libpng version 1.6.26beta05, October 3, 2016 * libpng version 1.6.26beta05, October 5, 2016
* *
* Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson * Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@ -507,9 +507,9 @@
# error "libpng requires a signed 32-bit (or more) type" # error "libpng requires a signed 32-bit (or more) type"
#endif #endif
#if UINT_MAX > 4294967294 #if UINT_MAX > 4294967294U
typedef unsigned int png_uint_32; typedef unsigned int png_uint_32;
#elif ULONG_MAX > 4294967294 #elif ULONG_MAX > 4294967294U
typedef unsigned long int png_uint_32; typedef unsigned long int png_uint_32;
#else #else
# error "libpng requires an unsigned 32-bit (or more) type" # error "libpng requires an unsigned 32-bit (or more) type"