mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng15] Fix Windows builds, add pngstest to Visual Studio and OpenWatcom
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
ed9f84475d
commit
89c2f84287
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user