add parentheses to avoid warnings

This commit is contained in:
homm 2013-03-27 23:19:04 +04:00
parent a511ef8b05
commit ebb9029fbe

View File

@ -78,7 +78,7 @@ ImagingAlphaComposite(Imaging imDst, Imaging imSrc)
UINT16 coef2 = 255 * 128 - coef1;
#define SHIFTFORDIV255(a)\
((a >> 8) + a >> 8)
((((a) >> 8) + a) >> 8)
tmpr = src->r * coef1 + dst->r * coef2 + (0x80 << 7);
out->r = SHIFTFORDIV255(tmpr) >> 7;