mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
add parentheses to avoid warnings
This commit is contained in:
parent
a511ef8b05
commit
ebb9029fbe
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user