From 2471434d29a8a006e8ca8e5b286c37b8604263b1 Mon Sep 17 00:00:00 2001 From: Cosmin Truta Date: Sun, 1 Jul 2018 23:32:08 -0400 Subject: [PATCH] [libpng16] Added missing parentheses to a macro definition (Contributed by github.com/irwir) --- pngwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pngwrite.c b/pngwrite.c index e526cbad7..b91d04da4 100644 --- a/pngwrite.c +++ b/pngwrite.c @@ -1636,7 +1636,7 @@ png_write_image_16bit(png_voidp argument) * calculation can be done to 15 bits of accuracy; however, the output needs to * be scaled in the range 0..255*65535, so include that scaling here. */ -# define UNP_RECIPROCAL(alpha) ((((0xffff*0xff)<<7)+(alpha>>1))/alpha) +# define UNP_RECIPROCAL(alpha) ((((0xffff*0xff)<<7)+((alpha)>>1))/(alpha)) static png_byte png_unpremultiply(png_uint_32 component, png_uint_32 alpha,