]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 12 Feb 2017 01:38:11 +0000 (20:38 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 12 Feb 2017 01:38:11 +0000 (20:38 -0500)
MagickCore/pixel.c

index 442f4a2b40d35e45cb15a8600e1f84415cdfac81..0458cfddeb0b82220763bb016a3fa21381830667 100644 (file)
@@ -2363,9 +2363,9 @@ MagickExport MagickRealType GetPixelIntensity(const Image *magick_restrict image
     red,
     intensity;
 
-  red=GetPixelRed(image,pixel);
-  green=GetPixelGreen(image,pixel);
-  blue=GetPixelBlue(image,pixel);
+  red=(MagickRealType) GetPixelRed(image,pixel);
+  green=(MagickRealType) GetPixelGreen(image,pixel);
+  blue=(MagickRealType) GetPixelBlue(image,pixel);
   switch (image->intensity)
   {
     case AveragePixelIntensityMethod:
@@ -4362,7 +4362,7 @@ MagickExport void InitializePixelChannelMap(Image *image)
   if (image->write_mask != MagickFalse)
     SetPixelChannelAttributes(image,WriteMaskPixelChannel,CopyPixelTrait,n++);
   image->number_channels=(size_t) n;
-  SetPixelChannelMask(image,image->channel_mask);
+  (void) SetPixelChannelMask(image,image->channel_mask);
 }
 \f
 /*