[libpng15] Fix Windows builds, add pngstest to Visual Studio and OpenWatcom

This commit is contained in:
John Bowler
2011-11-16 12:04:39 -06:00
committed by Glenn Randers-Pehrson
parent ed9f84475d
commit 89c2f84287
8 changed files with 634 additions and 114 deletions

View File

@@ -2028,7 +2028,7 @@ png_image_write_main(png_voidp argument)
# endif
/* That should have handled all (both) the transforms. */
if ((format & ~(PNG_FORMAT_FLAG_COLOR | PNG_FORMAT_FLAG_LINEAR |
if ((format & ~(png_uint_32)(PNG_FORMAT_FLAG_COLOR | PNG_FORMAT_FLAG_LINEAR |
PNG_FORMAT_FLAG_ALPHA)) != 0)
png_error(png_ptr, "png_write_image: unsupported transformation");