diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2015-03-21 11:54:32 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2015-03-21 11:54:32 -0500 |
commit | c5370ede959521e9a46e0e0fde53c921ff45895c (patch) | |
tree | 1e35221cbd4ae02d1720d03af35e0057659e433b /pngread.c | |
parent | 2b66107abb9452354da0980ea9d566667f1ba75f (diff) | |
download | libpng-c5370ede959521e9a46e0e0fde53c921ff45895c.tar.gz |
[libpng16] Reverted "& 0xff" additions of version 1.6.17beta01. Libpng passes
the Coverity scan without them.
Diffstat (limited to 'pngread.c')
-rw-r--r-- | pngread.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2052,7 +2052,7 @@ make_rgb_colormap(png_image_read_control *display) /* Return a palette index to the above palette given three 8-bit sRGB values. */ #define PNG_RGB_INDEX(r,g,b) \ - ((png_byte)(0xff & (6 * (6 * PNG_DIV51(r) + PNG_DIV51(g)) + PNG_DIV51(b)))) + ((png_byte)(6 * (6 * PNG_DIV51(r) + PNG_DIV51(g)) + PNG_DIV51(b))) static int png_image_read_colormap(png_voidp argument) @@ -3025,8 +3025,7 @@ png_image_read_and_map(png_voidp argument) *outrow = gray; else - *outrow = - (png_byte)(0xff & (PNG_CMAP_TRANS_BACKGROUND+1)); + *outrow = (png_byte)(PNG_CMAP_TRANS_BACKGROUND+1); } break; |