[libng17] Stifle the last remaining Coverity issue in libpng17.

This commit is contained in:
Glenn Randers-Pehrson 2015-09-28 15:41:47 -05:00
parent 975d8fac6d
commit bd55022b2d

View File

@ -1816,6 +1816,11 @@ png_create_colormap_entry(png_image_read_control *display,
*/
if (use_sBIT)
{
#ifdef __COVERITY__
/* Coverity says red, green, blue might be 16-bit values */
png_affirmpp(png_ptr, red < 256 && green < 256 && blue < 256);
#endif
red = convert_to_linear(display, red, display->sBIT[0]);
green = convert_to_linear(display, green, display->sBIT[1]);
blue = convert_to_linear(display, blue, display->sBIT[2]);