From: dirk Date: Sat, 17 Sep 2016 21:15:46 +0000 (+0200) Subject: Fixed incorrect division. X-Git-Tag: 7.0.3-1~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff44e221fb7701d0352364a871f400b5425a801d;p=imagemagick Fixed incorrect division. --- diff --git a/coders/psd.c b/coders/psd.c index 65dc4e8f3..9e6878dbd 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -400,7 +400,7 @@ static MagickBooleanType ApplyPSDLayerOpacity(Image *image,Quantum opacity, opacity),q); else if (opacity > 0) SetPixelAlpha(image,(Quantum) (QuantumRange*(GetPixelAlpha(image,q)/ - opacity)),q); + (MagickRealType) opacity)),q); q+=GetPixelChannels(image); } if (SyncAuthenticPixels(image,exception) == MagickFalse)