diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2014-11-01 13:18:36 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2014-11-01 13:18:36 -0500 |
commit | b963feeec6b2d7eabee3fe45cb8c23f68570e06c (patch) | |
tree | 59babbd47632346d8ba2e3c64cdfd07fbb21dbcd /pngwrite.c | |
parent | f2d4167fee31d0ba6c2f9b73d64d402d7a94a29b (diff) | |
download | libpng-b963feeec6b2d7eabee3fe45cb8c23f68570e06c.tar.gz |
[libpng16] More cosmetic changes
Diffstat (limited to 'pngwrite.c')
-rw-r--r-- | pngwrite.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pngwrite.c b/pngwrite.c index 23d9f4fa5..4410797de 100644 --- a/pngwrite.c +++ b/pngwrite.c @@ -1750,7 +1750,7 @@ png_write_image_16bit(png_voidp argument) display->first_row); png_uint_16p output_row = png_voidcast(png_uint_16p, display->local_row); png_uint_16p row_end; - const int channels = (image->format & PNG_FORMAT_FLAG_COLOR) ? 3 : 1; + const int channels = (image->format & PNG_FORMAT_FLAG_COLOR) != 0 ? 3 : 1; int aindex = 0; png_uint_32 y = image->height; @@ -1907,7 +1907,7 @@ png_write_image_8bit(png_voidp argument) display->first_row); png_bytep output_row = png_voidcast(png_bytep, display->local_row); png_uint_32 y = image->height; - const int channels = (image->format & PNG_FORMAT_FLAG_COLOR) ? 3 : 1; + const int channels = (image->format & PNG_FORMAT_FLAG_COLOR) != 0 ? 3 : 1; if ((image->format & PNG_FORMAT_FLAG_ALPHA) != 0) { @@ -2012,7 +2012,7 @@ png_image_set_PLTE(png_image_write_control *display) # endif # ifdef PNG_FORMAT_BGR_SUPPORTED - const int bgr = (format & PNG_FORMAT_FLAG_BGR) ? 2 : 0; + const int bgr = (format & PNG_FORMAT_FLAG_BGR) != 0 ? 2 : 0; # else # define bgr 0 # endif |