From: Cristy Date: Mon, 24 Apr 2017 16:12:37 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.5-5~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d13ec8d333f06538cc8ec9829c17be441a1f8706;p=imagemagick ... --- diff --git a/MagickCore/pixel-accessor.h b/MagickCore/pixel-accessor.h index 188ca1e55..6c4623696 100644 --- a/MagickCore/pixel-accessor.h +++ b/MagickCore/pixel-accessor.h @@ -35,7 +35,7 @@ extern "C" { static inline Quantum ClampPixel(const MagickRealType value) { if (value < 0.0f) - return(0); + return((Quantum) 0); if (value >= (MagickRealType) QuantumRange) return((Quantum) QuantumRange); #if !defined(MAGICKCORE_HDRI_SUPPORT) @@ -630,7 +630,7 @@ static inline void SetPixelBackgoundColor(const Image *magick_restrict image, i; for (i=0; i < (ssize_t) GetPixelChannels(image); i++) - pixel[i]=0; + pixel[i]=(Quantum) 0; pixel[image->channel_map[RedPixelChannel].offset]= ClampToQuantum(image->background_color.red); pixel[image->channel_map[GreenPixelChannel].offset]=