From: Cristy Date: Sat, 10 Mar 2018 21:25:57 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.7-26~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=109f6718864519450119c09b31695676ea8f5623;p=imagemagick ... --- diff --git a/MagickCore/distort.c b/MagickCore/distort.c index eb56d8101..b13693726 100644 --- a/MagickCore/distort.c +++ b/MagickCore/distort.c @@ -3242,17 +3242,17 @@ MagickExport Image *SparseColorImage(const Image *image, } /* set the color directly back into the source image */ if ((GetPixelRedTraits(image) & UpdatePixelTrait) != 0) - pixel.red=ClampPixel(QuantumRange*pixel.red); + pixel.red=(MagickRealType) ClampPixel(QuantumRange*pixel.red); if ((GetPixelGreenTraits(image) & UpdatePixelTrait) != 0) - pixel.green=ClampPixel(QuantumRange*pixel.green); + pixel.green=(MagickRealType) ClampPixel(QuantumRange*pixel.green); if ((GetPixelBlueTraits(image) & UpdatePixelTrait) != 0) - pixel.blue=ClampPixel(QuantumRange*pixel.blue); + pixel.blue=(MagickRealType) ClampPixel(QuantumRange*pixel.blue); if (((GetPixelBlackTraits(image) & UpdatePixelTrait) != 0) && (image->colorspace == CMYKColorspace)) - pixel.black=ClampPixel(QuantumRange*pixel.black); + pixel.black=(MagickRealType) ClampPixel(QuantumRange*pixel.black); if (((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0) && (image->alpha_trait != UndefinedPixelTrait)) - pixel.alpha=ClampPixel(QuantumRange*pixel.alpha); + pixel.alpha=(MagickRealType) ClampPixel(QuantumRange*pixel.alpha); SetPixelViaPixelInfo(sparse_image,&pixel,q); q+=GetPixelChannels(sparse_image); }